Facebook open graph action not getting updated timestamp after update - facebook

I'm using the PHP SDK for adding reviews/ratings of books. Whenever someone updates the rating of a book or a review on my site, I am sending in an update request through the API for the original open graph id associated with the rating/review and it does update the rating/review values but the timestamp on the action is still set to whenever it was first submitted. I want to have the time be reflected of the last update so it shows up in their activity feed/timeline in the right place.
I've tried modifying end_time,start_time and publish_time based on the documentation here: https://developers.facebook.com/docs/opengraph/using-actions/
but nothing does anything to modify the timestamp of the action. Any ideas?

My recommendation would be to delete the action and create a new one altogether.

Related

Posting a Facebook Story causes two entries to appear in Activity Log

I am posting a Facebook Story using an Open Graph Action and Object. Everything seems to work great except when I look on my activity log. I am seeing two entries, one expected one
"<'name> <'action> <'noun> in <'game>"
but I am seeing one that I don't expect
"<'name> posted a <'noun> in <'game>"
I've tracked it down and it seems to get posted as soon as I create the Open Graph object using FB.API("/me/objects/<'game>:<'object>", Facebook.HttpMethod.POST, CreateObjectCallback, oParams);
Which I believe is required to create the object that will be used in the story post. Does anyone know how to create this object for use in the story post without having an entry added to the activity log for it?
Thanks!

Facebook updated time for edited comments

Now that Facebook provides the ability to edit comments, I was looking for a way to grab comments that were newly edited. I can search the comments table for comments to a particular post and include time in the where clause, but time is the created time and not updated time. Is there any time field that gets updated, either in the comment table or elsewhere, when a comment gets updated?
There is already a question on this with no answer:
How to get last edited time of a comment through FQL/Graph?
It looks like Facebook hasn't updated their fql API for this. I'm assuming it would be a "foreign key/primary key" linked table with edited info columns.
https://developers.facebook.com/docs/reference/fql/comment

Facebook Graph API Event Paging not working?

I am trying to access past event via Facebook's Graph API.
I am getting current events just right (the one I attended last month and the one in the future) with
https://graph.facebook.com/me/events?access_token=[ACCESS_TOKEN]
However, the paging components "previous" and "next" don't really work, "previous" actually points to a future event that's already been listed in "me/events". While "next" just returns an empty "data" struct.
I also tried "since" with different previous timestamps (such as "me/events?since=1304238280") and it didn't work, it will always return the events that are the same as the ones returned by "me/events". But I definitely have many more past events when I visit
https://www.facebook.com/events/past/
Am I not using the graph API correctly or what? I also noticed there are quite a few questions regarding Graph API's paging problem but there doesn't seem to be a definitive answer yet.
Any info/suggestion/reference would be greatly appreciated!
From what I've seen, it appears that about two weeks after an event ends, Facebook moves the event data out of the events table and into another one that isn't exposed via the API. The internal Facebook servers have access to this table, so you can see past events from within the Facebook webapp.
I'm assuming this is a privacy thing.
try to add the "before" query string with the ID of the first event ex:https://graph.facebook.com/me/events?&before=388551911259170.
you can refer to the following link: https://developers.facebook.com/docs/reference/api/pagination/

Updating fields on existing Open Graph objects

I've got a web app that needs to update the values of fields in existing Open Graph objects. In particular I'm trying to edit the location on photos.
However I find I'm unable to directly alter any field at all. I've been experimenting with the Graph API Explorer using the POST method and an access_token with 'user_photos', 'publish_stream' and 'user_photo_video_tags' permissions. I've trying setting a photo's field 'caption' to another string value, and also the 'place' field to another Place ID such as 127571667351223 for Melbourne International Airport. When I click Submit for these commands, the response window just says 'true'. However when I check the Object, no change has occurred to it.
Can anyone explain why these changes aren't going through?
Thanks!

Open Graph Action and Object Resubmission

As I submit an application for "read" action on Open Graph I received the following response.
Status: Changes needed
Unfortunately, your article.read built-in submission does not meet the read requirements specified at: https://developers.facebook.com/docs/opengraph/actions/builtin/#read. You must give users the ability to turn sharing off/on globally as well as remove an article that was shared within the app. In addition, read actions should only be generated when there is a strong indication that the user is actually reading the article. Please note that we cannot accept resubmission as this time due to technical limitations, so you will need to create a new submission. We plan to have this resolved within the next couple of weeks. We suggest making the required changes and checking back. We appreciate your patience. Note: If you are creating an aggregation based on the object, you need to add 6-7 unique sample objects, and then create a corresponding sample action acting on each of these unique objects. (You can not just create 6-7 sample actions pointing to the same sample object). Submission Checklist: https://developers.facebook.com/docs/opengraph/checklist
Please make changes below and resubmit for review.
Unfortunately, this "guide" is not helping with anything. Firstly, I have no idea where to do this:
You must give users the ability to turn sharing off/on globally as well as remove an article that was shared within the app.
Second of all, I don't even know how to "resubmit"!
Any help would be appreciated.
I was experiencing the same thing. You have to click on the name of your action that you submitted. Once you do that, Facebook provides detailed instructions why they didn't approve the action and what you need to do before you resubmit. Once you review the message, you can make the necessary changes and save the action again. Then you'll have the option to resubmit. In my case Facebook said that I need to provide more detailed instructions what the user needs to do to get an action published. They provided this example: "User must create an account, enable Timeline sharing in the settings, view a product within the app and then click the “want” button underneath the product image to trigger a story". I did that and resubmitted. Hopefully it works this time around. Good luck.
To resubmit, just delete the rejected action and create a new one. You can use the same action name as before. You then go through the submission process again as you did the first time.
Facebook have recently updated their guide to implementing their built-in action types. For the Read action type, see https://developers.facebook.com/docs/opengraph/actions/builtin/#read. You will see a sample application that meets the following criteria required for the use of this action type:
Turn sharing on/off globally on each page an article appears.
Remove articles they shared within your app on each page an article appears.
Only generate read actions when you're sure someone is interested in reading the article.
Built-In actions can't be resubmitted. It is a FB Bug:
https://developers.facebook.com/bugs/364663400220101?browse=search_4f44876aabaef7501649601
From this answer on FB tools and support I got this:
You can start a new submission at the bottom of the "Items in Review" page:
https://developers.facebook.com/apps/337449599791917/review-status/items-in-review/
That link didn't work for me.. so I just went to the app dashboard and clicked on status and review
clicking on the start a new submission button loaded a dialog that prompted me to select which items to "re-review".. so I only selected the problematic one:
after that it loads a form for you to resubmit, so here you gotta re-upload the iOS simulator build etc..
and that's it!