I am initially asking a
manage_pages
permission whenever a user is authorizing my app. I would now like to add a custom tab i.e. the user can change the name of the tab which gets added to his facebook page. How can i achieve this?
Thanks Mirko... I checked the documentation and found that we can use graph api to make tabs as
$facebook->api("/PAGE_ID/tabs","post", array("access_token" => $accessToken, "app_id" => $appId));
though i was actually passing the 'user access token' in the above code instead of 'page access token as suggested by Lix in the other reply.
Fonally i found out that the page access token can be obtained by
$pageIds=$facebook->api('/me/accounts');
$pageAccessToken=$pageIds["data"][1]["access_token"];
$facebook->api("/PAGE_ID/tabs","post", array("access_token" => $pageAccessToken, "app_id" => $appId));
Facebook recently added the ability to programmatically (via the Graph API) create and modify tabs. Take a look at the tabs section of the Page docs:
http://developers.facebook.com/docs/reference/api/page/#tabs
if you goto the page settings ( top right corner of page - "edit page" button), and then navigate to the "apps" tab - you can change the name of the tab that was added by clicking on "edit settings" next to its name.
Related
So I have found AWS have some great documentation on how to customise hosted UI, and will be modifying it with CSS. However, I would like to change the text in sign in. Currently it displays the user indentity provider within the button and "corporate ID" above I would like to change. Is there a way to customise it to my choosing?
I lodged a AWS support ticket and they confirmed you cannot customise the button text or the text above the button (as yet). This is a request they get frequently.
In order to change the name of the text in the button, the user will have to change the name of the identity provider name.
All I want to do is create a few pages with sign up forms for our fans and customers on our business facebook page.
I created the new app, named it and went on to the basic settings. From what I can tell I just need to set up the "page tab" info. I Named the tab, put in the page tab url, secure page tab url and uploaded a tab image.
Then I wait for it to show up on our fb page. I refresh the page and for a few seconds it looks like something is being loaded in the list of tabs. But then it stops and the layout of default tabs (photos, likes, and events) are unchanged.
The tab should link to the app url which should load inside of an iframe which will have the html from our web server.
That's how I understand it anyways.
You must add manually the application on your page through this URL: http://www.facebook.com/dialog/pagetab?app_id=APP_ID&redirect_uri=https://www.facebook.com/
Remember to replace APP_ID first.
So I followed the directions on facebook to add my app (which is a tab) to my fanpage:
"Facebook Page administrators can add your app directly to their Page by navigating to the following URL: https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL, where YOUR_APP_ID and YOUR_URL can be found in your app settings."
And I got the the Add Page Tab page as described above but when I click on "choose facebook pages" drop-down, the fanpage I want to add the app to is not listed. I'm an admin on the fanpage... any idea of what is wrong?
Try using this form http://addtopage.muffinsdeluxe.com/
It will generate the correct link you need to add the app to your page.
Good luck :)
I have created some custom tabs for facebook pages, like when the user clicks on the add custom tabs, im fetching the user pages but how can i make them to install the custom tab to the particular page on which he clicks.
li.innerHTML = "Name: <a href='http://facebook.com/"+page.id+"'>"+page.name+"</a>";
From the above code, i could get only the list of user pages, among them when the user clicks on a particular page (i.e.,page1), it should direct them to their page1 profile by adding the custom tab. How can i make them to install the custom tabs?
If you have the manage_pages permission from the user, you can add your app to their page via the API - see here:
https://developers.facebook.com/docs/reference/api/page/#tabs
There's no other way to automate it, and using static links are you're suggesting above is prone to break if the Facebook web interface ever changes.
I'm using the xfbml Add To Timeline social plugin (https://developers.facebook.com/docs/reference/plugins/add-to-timeline/), but when I click it the permissions dialog I get just says "Access my basic information" and sure enough it isn't actually getting me the publish_actions permission I need to use the timeline. I tried specifying the perm explicitly on the tag like so:<fb:add-to-timeline show-face="false" mode="button" perms="publish_actions"></fb:add-to-timeline> but no luck.
This was working fine yesterday and suddenly now it isn't. I'm wondering if this has something to do with my adding and removing my app from my facebook account multiple times?
This was driving me crazy for a long while. In my case, I fixed it by enabling 'Enhanced Auth Dialog' under the Advanced tab of my app settings.
When asking for publish_actions Facebook shows a preview screen of what sort of aggregations your app will create on their timeline.
In other words, if the preview isn't working, Facebook won't ask for the permission so you're asking in vain. Facebook doesn't make this clear in the docs, but everything needs to be perfectly setup with your app on Facebook to get this to work right.
Enable Enhanced Auth Dialong in the advanced settings of the app
Make sure you have at least one action and one object set up in the open graph section
For each action you must have an aggregation set up.
If you do not do all of these steps, there can be no preview and so Facebook won't ask for permission no matter what.
I faced the same issue. I fixed it by doing the below mentioned two thiings.
a. Enabled 'Enhanced Auth dialog' from 'advanced' setting of the app.
b. blanked 'user and friend permissions' along with 'extended permissions' tab on 'auth dialog' page.
I am not sure what it did, but it started working.
BUT.. Even though the authentication works and the posts are reflecting on my timeline, the add-to-timeline button still shows, 'Add to Timeline'..
The other trick i used is to keep checking the app permissions under account setting tab of my profile page.
Hope this helps !
From Apps -> Settings -> Auth Dialog:
While in Open Graph Beta, the 'publish_actions' permission can only be
requested from developers and test users of your app. The
'publish_actions' permission will be ignored if requested from any
other user.
I had the Enhanced Auth Dialog enabled in the Advanced Settings, yet this did not work until I added a Aggregation Preview for the activity. Strange, but true.
Hope this helps.
The publish_actions permission appears only if the user has added timeline OR if your app is a game. I suppose it will also be available for apps when Timeline will be rolled out to all users...