Reputation: 1
I have created a landing/welcome page for a new client and the process seems to have changed. I can no longer go to the application profile to add it to the page. I was able to locate instructions through a google search that involved the following link:
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&display=popup
I replaced "popup" with what I thought was my canvas and I replaces "YOUR_APP_ID" with my app id taken from the settings. I get API Error Code: 100 API Error Description: Invalid parameter Error Message: Requires valid redirect URI.
Upvotes: 0
Views: 2608
Reputation: 91
I just successfully added my app to my page, but had an interesting "gotcha".
I used Add Page Tab Dialog as suggested by other people. That worked just fine, but when I navigate to the newly added tab in my page, I got an error:
405 - HTTP verb used to access this page is not allowed.
It turned out that "Secure Page Tab URL:" in your app's basic settings screen that do end with "/" character. I first specified an explicit HTML page called "landing.htm" and I got the error, then I created a sub-directory called "pagetab" with its default index page, and that didn't fix. Then, I tried "pagetab/" and it worked.
I wish they supported an explicit page URL.
Upvotes: 0
Reputation: 318
Go to your app canvas page, witch could be found developers.facebook.com/apps/ when you log in. Select your app id and paste it like: facebook.com/YOURAP . It should look something like this: 282906808394888 . After that you can see i left down corner link: Add to my page. From the given list select page you want and your tab will appear in your page like you want :) Feel free to ask if you still have problems.
Upvotes: 0
Reputation: 9829
Hope this helps
http://www.facebook.com/add.php?api_key=<YOUT_APP_ID>&pages
Upvotes: 0
Reputation: 25918
You missing required parameter redirect_uri
for dialog and you should not replace display
to your canvas but use display mode
You can simply use Facebook JavaScript SDK FB.ui
method which will add 'em for you. See Add Page Tab Dialog documentation.
Using just this code will do the work:
FB.ui({
method: 'pagetab'
});
Upvotes: 2