I have a general question. I am working on an iPhone App where we post certain things on a user's Facebook wall. We want to track if the exact post made the user still exist the day after. Basically, I want to find out if its possible to check whether a certain post that is made through our App still exist on Facebook or not?
If anyone has an answer for this that would be great!
Whenever you publish a post, a post_id is returned in the response. (Reference)
With this post_id, you can make a \GET request to /post-id and if you don't get the error, that means the post is still there. Or, you can simply check this link: http://facebook.com/{post-id} as #ceejayoz has mentioned.
Related
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.
So I've got a nice little Facebook app going, but I seem to be having an odd issue.
According to the documentation, when you call the Facebook apprequests API to send a game request to another user you should receive a response which contains a to parameter, which will be a list of facebook IDs. Now this is pretty much what happens for me, only the facebook IDs don't seem to be correct. They look like facebook IDs in that they're a long-ish string of numbers, but when I try to look at them in the graph explorer, they return nothing but an error message saying the object doesn't exist. When I'm testing I know what the IDs are of the friends I'm inviting and they don't match what I'm receiving back from the response object, and I don't see what these numbers are or where they're coming from. It's not the request_id parameter, I know that for sure.
Now my only thought is that it has to do with my app still being in sandbox mode, but I did try to switch it to production mode for a few minutes and test but it still did the same thing. The only thing I can think is that maybe it takes some time for the change to take effect, so tomorrow I'll try to switch it to production for a little longer and see if that does anything, but otherwise I'm stumped. This feature is really important too, so any help is highly appreciated.
To sum up the comments:
Select YOUR App in the API Explorer, instead of the "API Explorer" App.
IDs are "App Scoped", which means they are only available for your specific App. They can be used like global IDs though, you don´t need the "real" IDs anymore and you can´t get them anyway.
If your App is NOT a game, don´t use apprequests. Those are for "games with a Canvas implementation" only.
I find that my app which is recently created(about 5hrs) is missing altogether(with no trace of any existence) and i did not get any notification (or email) from fb which we generally get if we forget to add pivacypolicy to FB App.
It was a sweepstake kind of app where user is asked to participate in the contest by submitting his emailid and phone number. and his participation is posted on his wall with a link to app(using feed post, and link is given out using link parameter in me/feed post).
we posted a status on our client's wall including the app link(even post is missing now).
May i know a place or link where i can find a reason for my app's restriction as i followed all the rules of fb to the best of my knowledge.
Here is the app id if it may help 675743852468369.
Thank you in advance.
Just check your email if any query send to you by facebook because it may be spamming that continously posting or something like that or you have to read facebook policy and updation.
I have created a custom desktop app (Adobe AIR) that allows users to upload videos and pictures to their wall. As it turns out, I have to have control of these posts that get created by my app. I've read that everything you post using graph api has a post id:
http://developers.facebook.com/docs/reference/api/post/
I would like to know how can I retrieve this id so I can keep track of certain statistics later with FQL. Does anyone know how this is done?
While creating a post or uploading a photo to Facebook, the id of the newly created object is returned by Facebook. What you need to do is to fetch the response of the POST request you sent.
This should help https://developers.facebook.com/blog/post/498/
If you know C#.Net coding i shall provide you sample code for implementing it.
Get back if you need more help.
When you press on the timestamp in the head of the post you'll get a page with the post only with it's link in the adress bar, there you can also see the post ID.
That was what I've been looking for, and found out by myself...
Hope it helped you too.
I am working one of the application in which i have to implement facebook through FBConnect, i have done with that and it is working ,can post to the userwall, however the only thing which i didn't get is how to like any status updated by the user by default.Suppose in the appliction if user login and post anything through fbconnect that status should be automatically liked by default, i have search a lot however didn't find any solution.Please help me regarding for that
You probably can't do it in a single go. But you can get the POST_ID of the post you've just posted and then send HTTP POST request to https://graph.facebook.com/POST_ID/likes to achieve what you want.