Let's say I am user A and there is a user B. Is there some way to use the Facebook API or anything else and post on wall of user B using programming in such a way that the post appears to be by me?
I can get any permission I want because we are close friends. I would just like to post some jokes on the user's wall automatically at regular intervals. I have gone over a few questions asked related to this topic and they suggest that it is not possible by any means. However, they are all very old and I would like to know if there have been some new developments in the API or are there any other techniques that I can use?
I have successfully posted status updates on my page using PHP but the process seems to be a bit different for posting on a user's wall. There are a lot of question like, who do I need to get permissions from? Could anyone point me in the right direction by providing link to some tutorial or the part of documentation that I need to read to get started?
You can´t post to the wall of a friend. You can only post to your own wall with the API (with the publish_actions permission and the /me/feed endpoint). This will most likely never change, as it would be considered spam in most cases.
I would just like to post some jokes on the user's wall automatically at regular intervals.
...and that would not only be spam by definition, but also not allowed even if it would be possible. Autoposting is never allowed, and the message always must be 100% user generated.
Related
Im toying around with integrating facbook into a website. Basically this website will generate acheivements for each user after X amount time (starting from a day up to a year).
I want to post these milestones to facebook automatically (with users prior permission). Does facebook allow this?
This article seems pretty darn explicit that its not.
But i have seen lots of posts on SO that are scheduling posts while trying to figure this out. Perhaps i have terminology's mixed up or something. Could someone explain this for me please.
If its not possible, does this mean that the only time an app can post to a users facebook wall is when the user explicitly clicks something to the effect of "post to my wall". Meaning they would need to login and manually approve every milestone?
Thanks
No, it's not possible to post something on behalf of a user automatically. According to the facebook's policy, even if a user grants you a publishing permission, actions you take on the user's behalf must be expected by the user, i.e. user must be aware of the actions you are taking on his behalf. As the article says, this can be done, for example, by prompting user with a dialog box with a link to Share a photo to their timeline each time your app would like to share to the user’s Stream.
Facebook however permits scheduled Page posts, but I guess this is not what you want. You can read more about it here.
I am building a basic app for a research project. Basically, we want to see if brain surgery alters behavior based on user's facebook posts and interactions. In other words, we are trying to read all wall posts from specific users.
My initial ideas was this: As long as the researcher is friend's with the subject, I can call https://graph.facebook.com/UID/posts and https://graph.facebook.com/UID/feed. A combination of those two should give me all relevant posts.
This works perfectly for some users, but for others, I'm only getting some random posts while missing many others. For some users, I'm not getting anything at all. I cannot find any pattern as to when posts are shown and when not. Does anyone have an idea what the problem could be and how to solve it?
I'm using the read_stream permission.
The most likely answer is that the user's friend disabled API platform access in their settings or locked down the privacy in some of their posts.
Granted there is a lot of info on how to accomplish a lot of different things on Facebook. Resources are not what is missing, but I am missing some sort of information. I feel there is confusion with the Open Graph and Graph API.
I am writing an app that will post a message to a users wall.
User grants access to the app
App gathers this user information
Program (in this case Java) posts to users wall
In theory this is simple enough.
To get #3 to work, I've used the Graph API publishing call. Works great.
But after getting all of this to work, I see on the same page that the /PROFILE_ID/feed call states:
Publish a new post on the given profile's feed/wall. Note that this
feature will be removed soon.
Great! I've tried finding the equivalent using the Open Graph, but cannot seem to find anything similar. I've seen that for an app to post to a wall without user authorization (I only want the user to authorize the app once, then the app can post many times - the user cannot be involved in every post) it had to use Action and Objects, but only Facebook pre-defined... Can this still be done via HTTP request?
To top off on the confusion, in the Open Graph advanced topics How-To: Use an app Access token it refers back to use
curl -X POST \
-F 'message=Post%20with%20app%20access%20token' \
-F 'access_token=YOUR_APP_ACCESS_TOKEN' \
https://graph.facebook.com/4804827/feed
Which is back to the original method I found using the Graph API that will be removed soon.
I wish someone could help me make sense of this. I don't need code. There is too many posts already with just code and a bug fix. I beleive I need understanding.
Thanks in advance.
Lets start with your request 3: Program (in this case Java) posts to users wall
To accomplish this
1. you need to know what you are going to post on user's wall.
As per Facebook-Opengraph, this information is segregated as user + action + object.
Now you need to define what are the actions you wanted. Refer here
Then define your objects
Publish your story or message on to the user's wall.
How can i show the wall (feed) of my page to app on facebook? As i see in the page
www.facebook.com/kesha?sk=app_178091127385 and
www.facebook.com/pages/Khanduna-Yengu-Nangsu-Amuktang/187317137978077
I want show the wall(feed) of my page to my app of facebook. Please Help me.
I also try and see graph api as below
graph.facebook.com//feed
But Fail,
Please Help any one.
As I understand your question, you want to take the wall of your page and show the content of that on another page controlled by an app you have made, so that is the question I will answer.
There are a couple of things you need to do.
Facebook now requires you to have an access_token to get that information. You can get this in two different ways. Either you get your users permission to grab an access_token for them, or you create an access_token for one of the admin users with offline_access and manage_pages permissions.
There are problems with both cases:
1: Getting an access_token per user requires people to give permissions to your app which is quite annoying if they just gain access to the contents of the feed.
2: Having one access_token is also a problem seeing as Facebook puts a limit on how many requests you can make per access_token in a given time.
You need to balance these things out if you want the feed to be shown. Which case would you most likely use? If you don't have many users the second case might be the best, but if you go over the request limit no content will be shown and that could confuse your users.
Anyways.. Once you are past the access_token problem, you can access the information by getting the content from the page:
https://graph.facebook.com/YOUR_PAGE_ID/feed?access_token=YOUR_ACCESS_TOKEN.
You then get a nice json output you can use. If you are using the Javascript API you can simply use the information here:
http://developers.facebook.com/docs/reference/javascript/FB.api/
If you are ever unsure how to get the information you need there is a nice tool for that developed by Facebook called Graph API Explorer which you can find here:
http://developers.facebook.com/tools/explorer/
When my Facebook app posts to the users stream those posts do not get links for Like and Comment. Other Facebook publishing apps, like Instagram, get these links.
I can't find it in my Facebook application's settings. Anyone knows how to do it?
(I think this is the same question as this one: Facebook : Like and Comment Functionality against Wall Post but I'm not sure.)
See Traroth's comment to get a more to the point description of what it is I'm asking about.
It seems Nathat Totten is right about how these links are defaults and that they are controlled by Facebook. There are three things that confuses this issue.
One is that Facebook Test Users behave a bit more special than you might think. Even when they are friends, they are not fully so. Making these default links turn up only for the user that posts them (for Test Users, mind you, I'm hoping it'll work all right for real users).
Another is the documentation for actions in the Facebook Graph API documentation for publishing Post objects:
A list of available actions on the post (including commenting, liking, and an optional app-specified action). read_stream. A list of JSON objects containing the 'name' and 'link'.
Which made me start to try find out how to include the commenting and liking links myself. I can't find this info anywhere, so maybe that changed without the above quoted documentation reflecting the change.
Anyway, if, indeed this is a Test User issue, then I don't need to do anything special to fix this. I'll try to remember to come back here when my (iPhone) app is ready for the real Facebook world and I get to see if it works in that environment or not.