Updating fields on existing Open Graph objects - facebook

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!

Related

How to correctly configure an Open Graph story with map attachment?

In a test app I've set up an object (race) and an action (run). I'm now trying to set up a story that combines both of these.
Ideally the race object references a place on my app. But I've been experimenting with many configurations trying to get this to work — none successfully.
In the 'edit attachment' popup is a field 'highlighted points'. I believe this should provide a dropdown list of selectable options? It currently is not, and if I type free text into this field, it is not saved.
What am I doing wrong?
The race page on my app includes the following:
And the course pages include
>>>' />
>>' %> />
On Facebook, course is configured as a Place, race has the course property assigned. But I am unable to select race.course:location in the map popup.
I have also tried various configurations, including defining the lat/lon explicitly on the race page and defining appropriate properties on FB.
I am still unable to select the highlighted points value.
Am I missing something?
Have a look at the answer at
Open Graph Map layout
This should be able to guide you.
Also
https://developers.facebook.com/docs/reference/opengraph/object-type/place/#properties

Error: (#3501) User is already associated to the object type, article, on a unique action type Like. Original Action ID: 10202808015141547

copy pasted the exact code from https://developers.facebook.com/docs/opengraph/getting-started/ , changed the appid. Yesterday it used to work..now..not so much.any idea?
Check the settings for your Open Graph action.
Go to the Open Graph Dashboard for your app on Facebook Developers.
Click on the Read action.
Click the Advanced link.
Make sure that Allow Multiple is selected for the setting called Unique action.

Facebook open graph action not getting updated timestamp after update

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.

Facebook Invite Friend Dialog app_non_users filter seems to have no effect

I am building a Facebook Application that sits in a facebook page tab (and has a Canvas URL hook.) I am trying to implement the app_non_users filter.
When I introduce the filter, here is what I see:
In both ['all'] and ['app_non_users'] everyone is shown (including those who have authorized the app)
In ['app_users'] setting, no one is shown.
I am not running this on mobile, and I am passing the parameter in expected JSON form (proved by the fact that Facebook is doing different things for different values.)
I am also not using any other conflicting filters or even the "to" parameter. When I inspect the network tab, I see the following params being passed to FB:
message:Invite Message
title:Select from list of your friends
filters:['app_non_users']
api_key:xxxxxxx
app_id:xxxxxxxx
locale:en_US
sdk:joey
display:async
frictionless:false
redirect_uri:https://xyz.com
__d:1
__user:xxxxxxxx
__a:1
__dyn:798aD5z5CCU-wEbw
__req:9
Based on the above results, it seems to me that Facebook doesn't consider just app authorization to mean that a user is a app_user. So, exactly what makes a user app_user and how do I, as a app dev, make that change?
From the question I think you are using the filter alone without any other filter for the Request dialog box. If that is correct then follow the bug here as it points to the same issue as you are having.
As an alternate, until the bug is fixed, I might suggest you to use more than one filter so that both of them work correctly. I tried the same with RELL here.
I made workaround using 'exclude_ids' parameter and server side PHP.
Usng PHP I have populated exclude_ids with ids of current user's friends which already entered my app (I have those fb ids in my database), so Request dialog doesn't display those friends to user.

defining object types in open graph for facebook application

I wish to develop an application(facebook) which can publish the current actions of user on my website to his timeline.
Currently , I am able to post updates , but they are not dynamic. I mean I am unable to post the exact price and product name as searched by our user.
I will explain a bit through an example pic
I have set two custom properties Product:prodname and Product:price thinking that it will help me in sending the actual product user has searched and the price of the result he had obtained.
Now, I wish the preview to accept 2 variables prodname and price.
Am I on the right path ? Because facebook is not accepting the singular noun I submitted !
Please suggest and comment, if I am unclear in my question !!
I resolved my problem. The mistake I was doing was that I was setting custom properties to the product(object). However, actually, we need to add custom properties to the compare(action) instead. Finally we need to send the value of the custom properties to the open graph. Just concat it with the open graph url.
Here is a pic explaining the same :-
Snapshot of the page defining the object :-
Snapshot of the part defining the object preview:-
and then the final desired result :-
I don't think the Open Graph supports adding custom properties like that.
You should edit the Preview object to fill out the data or using an existing Product object url.