0

i've created a facebook Application today for my website i'm requesting access_token through javascript sdk with scope=manage_pages,offline_access,read_insights i figured out that offline_access was not given for the application newly created rest of the permission was granted but i've already made two application through that i can able to get offline_access scope for my access token my question is,

Is there any updates included in the new Javascript sdk .

steps to reproduce: 1.create an application in facebook.

2.click edit application and at the left side links click graph api explorer.

3.In the graphi explorer choose your newly created application and.

4.click get_accestoken button dialogue box ->extended permission

5.select read_insights,manage_pages,offline_access checkboxes.click ok.

  1. you can notice except offline_access other request are Present.

The access_token which you got from above steps will expires when session closed. so you can understand offline_access scope was not given.

Please some one help me to get out of this ... thanks in advance.

Chandru velan
  • 136
  • 1
  • 3
  • 21

1 Answers1

3

Change the app setting called deprecate offline_access to Disabled in the advanced tab.

DMCS
  • 31,720
  • 14
  • 71
  • 104
  • i couldn't understand what you are trying to say, are they remove offline_access scope? or i need to change some setting in my app? – Chandru velan Jan 24 '12 at 15:02
  • yes, they are removing it. But for you to get offline access (for now during the transition of deprecation), set that setting to disabled. – DMCS Jan 24 '12 at 15:03
  • offline_access is being descoped. You can read more about it here https://developers.facebook.com/blog/post/633/ For now though you can enable it again by following the steps DMCS outlined in your app settings. However, as they are deprecating it you should look at an alternative – TommyBs Jan 24 '12 at 15:05
  • 1
    @DMCS thanks a lot man its works for me now i just noticed the left settings – Chandru velan Jan 24 '12 at 15:06
  • @DMCS if they removed offline_access means how do i access the insights data when users not log-in to facebook ? is there any solutions for that. – Chandru velan Jan 24 '12 at 15:08
  • You should use an **app** access token for insights, not a **user** access token. – DMCS Jan 24 '12 at 15:10
  • Play around with your Grpah API and FQL's at https://developers.facebook.com/tools/explorer. You will learn a lot there. – DMCS Jan 24 '12 at 15:29
  • is that enough to use Application access_token for all the users page insights ?. i've gone through TommBs link , i'm wondering only we can extend the permission upto 60 days. – Chandru velan Jan 24 '12 at 15:30
  • i've found some solution in this link to extending the life span of access_token upto 60 days. this link might help newbie like me . if there is any other solution please add here https://developers.facebook.com/docs/offline-access-deprecation/ – Chandru velan Jan 25 '12 at 06:56