I have created a facebook application and a facebook page. Using js sdk i have collected the access token for the page Now I want to add a page tab using php code in the page.
Not getting any idea how to do this
Does any one have an idea about this
I have created a facebook application and a facebook page. Using js sdk i have collected the access token for the page Now I want to add a page tab using php code in the page.
Not getting any idea how to do this
Does any one have an idea about this
You can do this with PHP-SDK like this (see details in documentation for tabs connection page object):
$facebook->api('/PAGE_ID/tabs', 'POST', array(
'app_id'=>'APP_ID',
'access_token'=>'PAGE_ACCESS_TOKEN'
));
simple steps :)
1.verify that you complete page tab settings in your app settings link
2.make sure your page tab app should be 520px
3.now you just need to forward browser to this below address so user can select with page he/she want to add tab https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
you can also read the above points in detail here is link of fb doc
You can add an app to a page by redirecting user to:
http://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
Reference: http://developers.facebook.com/docs/appsonfacebook/pagetabs/