1

I am making a facebook app where, in the User and Friends Permissions I have chosen 'friends_birthday' and under the Extended Permissions I have chosen 'offline_access'

For the 'offline_access' the code is

facebook=Facebook('<api-key>','<secret-key>')
facebook.request_extended_permission('offline_access')

So I have used 'request_extended_permission' for getting Extended Permissions. What do I use for the User and Friend Permissions?

1

1 Answer 1

0

Assuming 'pyfacebook' works in a similar way to the official SDKs, just add the rest of the permissions you need as a CSV list to the same call:

facebook=Facebook('<api-key>','<secret-key>')
facebook.request_extended_permission('friends_birthday, user_birthday')

etc

7
  • I cannot do that since 'offline_access' comes under Extended Permissions and 'friends_birthday' comes under User and Friend Permissions as per developers.facebook.com/docs/authentication/permissions
    – kariakunj
    Jun 13, 2012 at 14:34
  • Are you confusing the categorisation of permissions on the Permissions documentation with the methods in the SDK you're using? Have you checked the code for the SDK to see what it does with the supplied parameters? If it passes them in the scope parameter in the call t the Auth Dialog it should work - there's no difference between how the different permissions categories are requested, they're all passed to the Oauth Dialog in the same parameter
    – Igy
    Jun 13, 2012 at 14:35
  • Yes, after reading your previous comment, I did try to pass the rest of the permissions also in the same call itself, but, it doesn't work. I am not able to understand where am I going wrong.
    – kariakunj
    Jun 13, 2012 at 14:40
  • I've had a look and it seems like that SDK is way out of date, and doesn't work with the current auth flows - it's still using the ext_perm parameter which went away with the Oauth 2 migration in October 2011
    – Igy
    Jun 13, 2012 at 14:46
  • I feel you are right because here --> developers.facebook.com/docs/reference/fbml/prompt-permission when I refer to the table, column name perms, I get to see offline_access and also email in the same space. So probably, permissions are to be passed in the same call, but, it isn't working for me right now.
    – kariakunj
    Jun 13, 2012 at 14:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.