Facebook OAuth redirect_uri to page tab error

I follow this guide http://developers.facebook.com/docs/appsonfacebook/tutorial/ and specifically in this part of the code

$app_id = "YOUR_APP_ID"; $canvas_page = "YOUR_CANVAS_PAGE_URL"; $auth_url = "http://www.facebook.com/dialog/oauth?client_id=" . $app_id . "&redirect_uri=" . urlencode($canvas_page); 

When I enter $canvas_page as

 $canvas_page = "http://www.facebook.com/PAGE_NAME/app_APP_ID/" 

I get "Error occured. Try again Later"

If I enter the Canvas Page Url, it shows the canvas page correctly, but I do not want this.

I'm sure he worked last week, so I don’t know what is wrong now.

+8
facebook oauth
source share
4 answers

What used to work is

 $canvas_page="http://www.facebook.com/pages/PAGE_NAME/PAGE_ID?sk=app_APP_ID" 

but since I changed the application to a namespace, I had to do something like this:

 $canvas_page="http://apps.facebook.com/APP_NAMESPACE/" 

and now it displays correctly without errors

0
source share

For me, the problem was in the GET request, since it seems that facebook is requesting the GET parameter, I will show you what I mean:

I had this:

 uri = "http://www.facebook.com/pagename/app_appId"; 

When I changed it to below, it started working:

 uri = "http://www.facebook.com/pagename/?sk=app_appId"; 

Hope this helps someone as it helps me.

+7
source share

According to the docs this should work - https://developers.facebook.com/docs/authentication/pagetab/

What will not work, redirecting directly from the Canvas App → Auth Dialog → Tab page but the tab “Page” → “Auto Dialog” → “Page Tab” should work well with this documentation

+1
source share

In the application settings, try putting the TAB URL in:

facebook app → canvas url

In the secure URL too

Insert here WITH Slash at the end, BUT in your REDIRECTION put WITHOUT a slash at the end.

0
source share

All Articles