Reputation: 3252
I am following this tutorial http://developers.facebook.com/docs/appsonfacebook/tutorial/ and specifically at this part of 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 an "Error occured. Try again Later"
If I enter Canvas Page Url instead, it shows the canvas page correctly but I do not want that.
I am sure that it was working last week, so I do not know what is wrong now.
Upvotes: 8
Views: 3952
Reputation: 3252
What was previously working was this
$canvas_page="http://www.facebook.com/pages/PAGE_NAME/PAGE_ID?sk=app_APP_ID"
but since I changed the app to a namespace I had to do something like this:
$canvas_page="http://apps.facebook.com/APP_NAMESPACE/"
and it now shows up correctly without error
Upvotes: 0
Reputation: 820
For me the problem was the GET request, somehow it seems facebook asks for 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 the below it started working:
uri = "http://www.facebook.com/pagename/?sk=app_appId";
Hope this helps someone as it helped me.
Upvotes: 7
Reputation: 1
In the app settings, try put TAB URL in:
app on facebook -> canvas URL
In the secure URL too
Put in here WITH Slash at the end, BUT in your REDIRECTION put WITHOUT slash at the end.
Upvotes: 0
Reputation: 43816
According to the docs, this should work - https://developers.facebook.com/docs/authentication/pagetab/
What won't work is redirecting directly from Canvas App -> Auth Dialog -> Page Tab but Page Tab -> Auth Dialog -> Page Tab should work fine with that documentation
Upvotes: 1