on my webpage I have integrated the Feed Dialog using the JavaScript SDK. It works all like a charm, except when I'm using Facebook as a page.
I get this error message:
You are using Facebook as myPage
To access this page, you'll need to switch from using Facebook as your page to using Facebook as yourself.
I already tried to change the from and to parameters, but with no luck.
Is there any way to post a story on a page with the Feed Dialog?
Unfortunately this dialog is not supported when you are using Facebook as a Page. Please use Graph API -> Post (https://developers.facebook.com/docs/reference/api/post/)
You can in fact do this. Just follow the instructions as it says and switch to using Facebook as yourself.
Then when you share as yourself, you can choose to share it to a "Page you manage" using the dropdown in the top-left.
Related
I Use the Facebook API Graph on my website to feed posts.
The problem is that I can't figure out how to feed on my facebook personal page. I can only feed on my facebook normal page.
The feed looks like this:
https://www.facebook.com/dialog/feed?app_id=xxxxxxxxxx
&redirect_uri=https://www.mywebsite.com
&link=https://www.mywebsite.com/
&title=title
&picture=https://www.mywebsite.com/picture.png
&caption=caption&description=description
Can I add somewhere the url of my persosnal page to post directly on it?
With the Feed Dialog, you can only post to your user profile. Try the Share Dialog instead: https://developers.facebook.com/docs/sharing/reference/share-dialog
...you can even omit all parameters except for the URL, because it will just get the data from the Open Graph Tags.
If that does not work, you can also use sharer.php: https://www.facebook.com/sharer/sharer.php?u=[urlencoded-url]
Some Background Info
As of Mar/Feb 2014, the Facebook sharer.php way of sharing content no longer accepts custom parameters. See response from a Facebook engineer.
It used to allow multiple parameters in this form:
http://www.facebook.com/sharer.php?s=100
&p[url]={url}
&p[images][0]={img}
&p[title]={title}
&p[summary]={desc}
So you could override the title, image and description that facebook would scrape from the page, but it seems these are now ignored.
Instead, Facebook now favours the opengraph tags on the page.
So why is this a problem?
This is my scenario: I have a gallery page with multitple images. I have a lightbox that loads an image when clicked, and when the lightbox is shown, I also show share icons for all the major social networks, including facebook.
The facebook sharer url is built up using the above format, so I pass in the specific image together with the image caption. These values are now ignored.
Feed Dialog To The Rescue?
The Feed dialog method of sharing is now the preferred method, and it supports passing in custom images and captions. It works perfectly in my above gallery scenario. But it has a limitation: it does not allow you to share the content on a page you manage like the sharer.php does:
So my question is...
How can I get the Feed Dialog to work like the sharer.php and give the end-user the option to share to a group, friend's timeline or a page he/she manages?
But it has a limitation: it does not allow you to share the content on a page you manage like the sharer.php does
It incorrect statement. You can post anywhere using the Feed Dialog! You can use the to parameter and give it the concerned id where you want to share the feed.
For example
PS Facebook has introduces Graph API v2 today, and introduced new Share Dialogs over Feed Dialogs. I'm not share if that's to your significance but you can have a look.
I am trying to post link using Graph API. I am posting to https://graph.facebook.com/me/links. It is working as shown below. I want to do it similar to how Snip.it displays. I mean show "via Snip.it" in the bottom as shown in the figure below. If I keep the cursor on top of the link, a hover panel is also displayed.
Is it possible to do like that via Graph API? If not, how is Snip.it doing it?
By the way, If I post a link to feed url (https://graph.facebook.com/me/feed), I get the error "The post's links must direct to the application's connect or canvas URL.".
Through my app:
Through Snip.it:
You can use feed dialog mentioned in following link here. "snip it" is a Facebook app, in feed dialog you specify the app_id, by defining app_id Facebook will add "via" + "your app name" in each feed dialog.
I am building a website for a client. He has a Facebook page for his business. On the homepage of his site, he wants a feed that will pull in all the updates from his business' Facebook page.
Now, I felt this would be very easy to implement (maybe it is) but I have scoured the Facebook API for any simple way to do this. I am having a lot of trouble understanding which way I should do this. I've settled on using JS to access it, but have no idea where to go from there.
Do I need to create an app? If so, which options do I select so I can access the clients facebook page?
How do I get my app that I've created to show up so a user can authorize it? I have so many questions, and Facebook isn't very good at giving me answers.
Any help is greatly appreciated.
I would suggest you just use the facebook page's RSS feed.
Example
Take his page URL e.g.
https://www.facebook.com/pages/Lazery-Attack/6001014870
Take the number at the end of the url off, and plug it into the facebook feeds URL e.g.
https://www.facebook.com/feeds/page.php?format=rss20&id=6001014870
Voila, you now have an RSS feed you can integrate into the website you are building.
URL Breakdown
The URL is broken down the following way:
https://www.facebook.com/feeds/page.php?format={feedFormat}&id={PageID}
Vaid feed formats are:
RSS - rss20
Atom - atom10
JSON - json
Other Examples
Atom
https://www.facebook.com/feeds/page.php?format=atom10&id=6001014870
JSON
https://www.facebook.com/feeds/page.php?format=json&id=6001014870
Take a look at the facebook API, right here: http://developers.facebook.com/docs/reference/api/page/
You can give it a try here:
http://developers.facebook.com/tools/explorer/?method=GET&path=19292868552%2Fposts
The like box: http://developers.facebook.com/docs/reference/plugins/like-box/ also has the latest posts available
The simplest way is to add a Like Button to the page and make sure "show Stream" is checked on as this will show all recent posts. You can customise the appearance also (e.g. width, height etc).
No App or messy API calls needed!
Try it out here and simply paste the resulting code into your webpage:
http://developers.facebook.com/docs/reference/plugins/like-box/
Not an app, but the Facebook Social Plugins over here at Facebook For Pages
I am using this url to direct my mobile web page to a facebook wall post dialog page, however I can't seem to get display=wap to work.
http://m.facebook.com/dialog/feed?app_id=<myappId>&redirect_uri=<myRedirectUri>&link=<myLink>&display=<wap|touch>&picture=<myPicture>&caption=<myCaption>&description=<myDescription>&name=<myName>
Using display=touch works fine on most devices except some blackberries I've tested, where the dialog page is blank except for the "Publish" and "Cancel" buttons. When I use display=wap, I get "An error has occured" no matter what I do.
Does facebook support this feed dialog with display=wap? I found this url on their developer's web page here:
Facebook Dialogs
Under the heading labeled : Mobile Display Modes
I'd appreciate any advice!
Currently we don't support the feed dialog in display=wap. Sorry.