hoauth icon indicating copy to clipboard operation
hoauth copied to clipboard

[Question] Graph API version

Open marianoarga opened this issue 11 years ago • 5 comments

Hello, Facebook contact me saying my app is making calls to v1.0 of the Graph API which will be deprecated, do you know how to avoid this version issue? Thank you.

marianoarga avatar Jan 21 '15 14:01 marianoarga

I think the first step is to upgrade the "thirdparty/Facebook" PHP SDK

marianoarga avatar Jan 21 '15 15:01 marianoarga

Will try adding '/v2.x/' in base_facebook.php $DOMAIN_MAP and see what happend

'graph'       => 'https://graph.facebook.com/v2.2/',

marianoarga avatar Jan 21 '15 20:01 marianoarga

Hi,

I want to avoid this issue, but I can't do that right now. I can't find enough free time... The extension need to be completely rewrited.

The first aproach to fix this issue is to try to update Hybridauth extension, but I'm not sure if simple compy-paste of lib will work. I will try to fix this in the next week, but I'm not promising :)

SleepWalker avatar Feb 01 '15 07:02 SleepWalker

Oh, that would be wonderful since Facebook give us (developers) 2 months to update our apps. Thanks a lot for your hard work men, I really appreciate it.

marianoarga avatar Feb 02 '15 13:02 marianoarga

[Update] This won't be an issue if you only ask for public profile (default) and email, since those user properties are free to access through the new API versions, the other permissions need to be aproves by Facebook when calling to "/v2.x" API URL.

marianoarga avatar Feb 23 '15 16:02 marianoarga