简体   繁体   中英

How do I now add my application to my page?

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.

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'
});

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.

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.

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