简体   繁体   中英

how do I add a custom tab in my page?

开发应用程序有所不同...之前非常简单,只需单击“应用程序配置文件页面”中的“添加到我的页面”链接,现在如何在页面中添加自定义标签?

Here's the new way to add a tab to a page: http://developers.facebook.com/docs/reference/dialogs/add_to_page/

For a user initiated action that you can embed on one of your pages.

<script> 
  FB.init({appId: "YOUR_APP_ID", status: true, cookie: true});

  function addToPage() {

    // calling the API ...
    var obj = {
      method: 'pagetab',
      redirect_uri: 'YOUR_URL',
    };

    FB.ui(obj);
  }

</script>

Or you can simply type this into your browser bar:

https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID &display=popup&next=YOUR_URL

The YOUR_URL URL should be something from your app settings such as the site url. It's just the next place the user will go once they add your app as a page tab.

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