facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.18k stars 1.96k forks source link

Graph returned an error using graph version v2.10 and Facebook SDK for PHP 5.X #1002

Closed milap-virtueinfo closed 6 years ago

milap-virtueinfo commented 6 years ago

Hello

I have integrated facebook social login button for my one project. Earlier it was using graph version v2.2 and everything works fine, But facebook no longer supported to version v2.2. So I have upgraded it to v2.10.

But it seems when I logged in using facebook the callback popup automatic gets close. And my login flow gets disturbed.

I have used https://github.com/facebook/php-graph-sdk code, when I executed code of exception It shows me following error(unreadable).

Graph returned an error: URL લોડ કરી શકતાં નથી: આ URL ની ડોમેન એપ્લિકેશન ડોમેન્સમાં સમાવેલ નથી. આ URL લોડ કરવા, તમારી એપ્લિકેશન સેટિંગ્સમાં બધા ડોમેન્સ અને એપ્લિકેશન ડોમેન્સ ક્ષેત્ર માટે તમારી એપ્લિકેશન સબડોમેન્સ ઉમેરવા માટે સમર્થ હોય છે.

Can any one let me know how can I debug error in readable format? Or is there anything missing in https://github.com/facebook/php-graph-sdk code?

yguedidi commented 6 years ago

@milap-virtueinfo thanks for posting your issue here! Unfortunatly, it looks like a usage issue more than an SDK issue. You should check the changelog of the Graph API from 2.2 to 2.10, or ask for help on StackOverflow