Changes between Version 41 and Version 42 of UserGuidelines/SAMBRO/Implement


Ignore:
Timestamp:
11/30/17 09:32:17 (7 years ago)
Author:
Biplov Bhandari
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserGuidelines/SAMBRO/Implement

    v41 v42  
    219219
    220220* Go to Administration -> Settings. On the left panel, you will see a number of Settings including the Facebook Channels. Click on it.
    221 * Click on '''Add Facebook Account'''. Fill out the details along with the '''App Id, App Secret, Page ID, Page Access Token'''. You have to check the '''Use for Login?''' to be able to be post on the facebook. Click Save.
     221* Click on '''Add Facebook Account'''. Fill out the details along with the '''App Id, App Secret, Page ID, Page Access Token'''. You have to check the '''Use for Login?''' to be able to be posted on the facebook. Click Save.
     222* However, this token is only valid for 2 hours. Use the info available [https://stackoverflow.com/questions/12168452/long-lasting-fb-access-token-for-server-to-pull-fb-page-info here] and [https://stackoverflow.com/questions/17197970/facebook-permanent-page-access-token here] to get the token that lasts for 60 days. You cannot get the everlasting token.
     223* For page permission, give it at least the following permission.
     224
     225[[Image(https://i.imgur.com/87xNt2D.png)]]
     226
     227* In exchange for short-lived tokens you can get the long-lived token (60 days) by using the URL as:
     228
     229
     230{{{
     231    GET /oauth/access_token? 
     232        grant_type=fb_exchange_token&           
     233        client_id={app-id}&
     234        client_secret={app-secret}&
     235        fb_exchange_token={short-lived-token}
     236}}}
     237 
     238
     239More info is available here: https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension
     240
     241* You can check your access token expiry date here: https://developers.facebook.com/tools/debug/accesstoken/
     242
     243* Finally it should look something like this
     244
     245[[Image(https://i.imgur.com/gFVsVjg.png)]]
    222246== Other ==