简体   繁体   中英

Login Facebook app with fb link at redirect_uri

I created a page tab app from developers so in the fields I have:

Canvas Url: http://ingersidemon.ro/proiecte/pitzi-world.ro/.facebook/concurs/

Secure Canvas Url: https://ingersidemon.ro/proiecte/pitzi-world.ro/.facebook/concurs/

Page Tab Url: http://ingersidemon.ro/proiecte/pitzi-world.ro/.facebook/concurs/

Secure Page Tab Url: https://ingersidemon.ro/proiecte/pitzi-world.ro/.facebook/concurs/

So the problem is: I want to create a login dialog something like this:

$dialog_url = "https://www.facebook.com/dialog/oauth?client_id=".$app_id."&redirect_uri=".urlencode($my_url)."&state=".$_SESSION['state']."&scope=publish_stream";

Where $my_url = "http://www.facebook.com/1mil.Fotografii/app_415786855156952";

It gives me error because the url is not own by the application settings, but at some apps source I see this Url with facebook link working. If i set

https://ingersidemon.ro/proiecte/pitzi-world.ro/.facebook/concurs/

After the login url my app wont open in Iframe mode, it opens the https://ingersidemon.ro/proiecte/pitzi-world.ro/.facebook/concurs/ not in facebook, where I am wrong?

是的,您的应用程序不拥有http://facebook.com域,请将$ my_url更改为$ my_url ='http://ingersidemon.ro/proiecte/'...您可以在其中处理facebook响应,请检查facebook api以查看什么facebook发回你

Where $my_url = "http://www.facebook.com/1mil.Fotografii/app_415786855156952";

It gives me error because the url is not own by the application settings

Since calling that URL in my browser only leads me to the page itself (same as if https://www.facebook.com/1mil.Fotografii was called directly), I suspect you either did not install this app on the page, or you might still have sandbox mode turned on in your app settings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM