facebook feed on personal page - facebook

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]

Related

Facebook URL scheme to post on a page

Is it possible to post on a page with a url scheme?
I currently have this, fb://profile/325899700848032
But this only opens the page ofcourse. What i mean is something like this
fb://profile/325899700848032/PostMessage/"test message" or ../PostImage/image
Is anything like this possible to do?
Thanks!
To post on facebook page you need to ask first for the famous manage_pages authorization. Once you have it you make a FBRequest on the openGraph for me/accounts which return an array of the current user pages and other application. You parse this json for each page and you pick the token_access and the id. You then set the page token access on your facebook manager and then you can post for example a picture to the page with the "{id}/photos" POST graph request {id} being the page id.

Post an OpenGraph action for Like and Comment without using Like and Comments plugin

I am using GraphAPI to send comments and likes to a facebook photo from my site. The problem is I want to post the action to the user's wall, one which should be viewable from their friends' news feeds like "ChrisB liked a link" and "ChrisB commented on a link", where link is the photo's url on facebook. Of course I expect the photo thumb and name and description to appear on the post as well.
I have attempted to use custom OpenGraph actions and objects for these, but og:url won't accept facebook links now (which is odd because it still works for facebook pages). The error I'm getting from the linter is "Facebook urls cannot be crawled".
Is there any way to get the result that I want?
Instead of using a Facebook URL directly, try using bit.ly links or some way of automating the redirection from your site to Facebook. For example, I would use the apache module mod_rewrite to create a page on my website, but have it redirect to Facebook.
E.g. 'fake page' would be domain.com/{photo_id}.jpg, but have mod_rewrite redirect to http://www.facebook.com/photo.php?fbid={photo_id}

How to get facebook page rss feed (everyone)

If you view facebook page, they are link left-bottom shows rss feed for facebook page, but unfortunately, the feed only shows status update by page owner, is there anyway to get feed from everyone who post the new status in the page....
There's another way to get the feed from a public Facebook page as RSS, which is entirely public and can be retrieved anonymously; i.e. requires no Facebook connect or other stuff. The format for the URL of the RSS feed is:
https://www.facebook.com/feeds/page.php?id=PAGE_ID&format=rss20
Where PAGE_ID is the Facebook ID of the page. Or even better, as JSON:
https://www.facebook.com/feeds/page.php?id=PAGE_ID&format=json
Use http://developers.facebook.com/docs/reference/api/, get the access_token like this: Facebook: post image and description to wall and in page album via php
These guys seems to be providing an API as well here - https://randomtools.io/developer-api/

Like an object on Facebook outside Facebook

I've been trying to use the Like button generator to get a Like button for some content on my fan page: http://www.facebook.com/photo.php?fbid=363385833679921&set=a.314588171893021.85085.305618229456682&type=1
What I want to do is show the likes this photo got on Facebook in the like button on my site and vice versa.
This seems to work for the actual fan page url but doesn't work for individual photos (haven't tested other objects).
You are able to see the likes the object on Facebook got through the graph API call: http://graph.facebook.com/363385833679921. So shouldn't that be available on non-Facebook sites as well?
Anyone know a solution to this without having to make a custom handler to show and post likes on site?
Why don't you just use the API to read the comments and likes on the object? Any user's access token will work if that user can see the object

Feed Dialog with Page Feed

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.