Normally, When we develop a Facebook application, we are using a direct URL to get page Tab in the page with using below URL.
1 2 3 |
So, URL other users can add your app/page as a pageTab using aboURL but for that you need to share or provide above URL to users.
So better and another way is to demonstrate interface and Fortunately, you can get the Facebook modal-style popup window using a little bit of JQuery and the Facebook Javascript SDK and it allows the user to add an app to a Facebook Page if users are owner/admin of the page 🙂
The Javascript SDK
The Add Page Tab Dialog prompts
1 2 3 4 5 | <div id='fb-root'></div> <script src='https://connect.facebook.net/en_US/all.js'></script> <p><a onclick='addPageTab(); return false;'>Add PageTab</a></p> |
place this line of code in the
tag of your HTML page:definitely, the YOUR APP ID
should be replaced with your actual application ID.
That’s it.Now you can use interface for face page Tab.
Thanks for reading and feel free to share your thoughts, don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.