I'm looking to use the Facebook PHP SDK to be able to "check in" to places on Facebook from a widget on my site.
I'm having some trouble figuring this out. Do I need to go and create a Facebook Graph object of the place I want to check in to. By this I mean use the OpenGraph Markup and create a file on my website that represents the place.
I have successfully created one of these but it was a movie and not a place. I'm having trouble creating it for a place/venue. Does anybody have any samples?
Thanks.
Update:
I keep getting this error is anybody familiar with it? Thanks.
"(#100) Param place must be a valid page ID"
You can only check in to existing Pages (specifically, those with location information, AKA Places) - these are the real places on Facebook.com which were created there or via the Facebook mobile apps
You can't check into Open Graph objects even if they're defined with location information
Related
I am developing a travel portal and I dont know if this functionality is possible. Basically, my site provides information of exciting destination to visit. I want to integrate a function I saw on TripAdvisor...the ability to know which of your friends on facebook have visited that destination.
If the user is already logged on to facebook, it automatically returns their profile image in a bubble form. If not,it gives them the option to log on to facebook.
I got this idea from TripAdvisor, and wondering if possible.
Thanks for your assistance.
Regards,
Seyi Osinowo
I guess TripAdvisor is using the /{page-id}.context/friends_tagged_at endpoint for that. Therefore, you'd need to know the Facebook placeId for the specific destination. Theoretically, you can use the Place Search in conjunction with lat/lng and radius for that:
GET graph.facebook.com
/search?
q=coffee&
type=place&
center=37.76,-122.427&
distance=1000
See
https://developers.facebook.com/docs/graph-api/reference/v2.4/page.context/friends_tagged_at
https://developers.facebook.com/docs/graph-api/using-graph-api/v2.4#search
I am using Facebook-unity-sdk to for getting list of users friends.
but i am not being able to get any data.
i also tried open graph explorer to fire graph API
the results were as follows
Is there a way i could use some Graph API endpoint other then "invitable_friends" to retrieve list of all friends of user?
No, you can not. there is no other endpoint.
well.. as far as i understood your question you can do one thing.
Just add a platform(app on facebook) in your app settings, and when it asks you about "Canvas URL" just put any random website URL and save settings.
now check if the "invitable_friends" is working or not.
PS:-
You don't have to run by the rules every time. :)
I created a new app last week with the purpose of using Facebook insights for our website, but it is not available in the list to make the connection with. Do I need to do anything to make the app selectable?
For any of you people who think this question is not technical and shouldn't be here, I was directed here from Facebook bugs because it's not a bug.
I have had the same issue but after a bit of experimenting I found that it does not affect the ability for you to claim a domain and associate it with an app.
What the drop down list does is generate the code snippet shown below. I'm guessing this was useful when you was able to link it to a page_id (you can no longer do this). As long as you have put the correct meta tag (such as that below, replacing %%app_id%% with the app_id given by the Facebook App Center) you are free to ignore what account is shown in the drop down.
<meta property='fb:app_id' content='%%app_id%%'/>
Once you have linked the account you can go back to the Facebook App Center and set permission on the account.
Tip: While you can only give other verified developers Manager access to the app you can add any friend or email address to the insights level of access which is all which they need.
Not sure if this is the case here. But I do know that there is a threshold to see insights with regard to pages.
As detailed here in the FAQ's -
Is there a minimum number of users to see Insights for Pages? Yes. For
user privacy reasons, Insights are only provided to Pages with greater
than 30 users who like that Page.
Perhaps there is a limit for domain insights too. You should allow some time and some traffic pass before the insights start being able to give feedback...
I had the same error, I tried to debug my site here FB Debugger
which is the official debugger you can input URL, Access Token, or Open Graph Action ID.
It works for me.
Is there any way I can create comments related to my object, without using the comments plugin? The Facebook Graph API seems like the correct way, but can I link to an object on my web site without actually "posting" that object as a post on facebook? Amazingly, I can't find anyone on the Net with this problem, so perhaps I'm simply doing it wrong.
I'm trying to post to:
https://graph.facebook.com/comments/?ids=http://iesgroup.ca/myappbeta/Item/1799633&message=test&access_token....
I do have the publish_stream permission in the access_token. All I get back is "An unknown error has occurred".
Essentially, I have set up my own web site using the Open Graph protocols. Each item that I have has its own URL with the proper OG tags. For each item, I am able to fetch the comments that facebook has associated with it. But I am unable to actually attach new comments to that object, without using the facebook comment plugin. I'm using my own look-and-feel commenting system, so I am not interested in using facebook's module. I'm using the JavaScript API to fetch the existing comments.
Note, that if I use the Open Graph protocol, users are able to post actions to their timeline, but not actually associate new comments to the object.
Thoughts? Thanks.
The only way I know of is to use the Facebook Graph API and have a Facebook website application and use server-side code to directly re-post comments from your website to the facebook page on an existing Facebook object. It is much more in-depth than the simple Open Graph implementation. But if you don't want to use Facebook's comment module, I don't see any other option. This is a link to the area of making comments, http://developers.facebook.com/docs/reference/api/Comment/ , but this is only useful after you have everything else set up. This is a huge undertaking to get your website to this point, but you will have full control over every aspect of how you interact with Facebook, cause you write your own code. Here is a link to the top level of the FB Graph API so you can read more about it. http://developers.facebook.com/docs/reference/api/
Nick - www.meltedjoystick.com
How can i get all the facebook user id whose like my application via a graph api.
Please give any suggestion.
Like facebook fan page showing application liker randomly. I also want to access my application liker list and want to save in database.
Please tell me if any possibility? Need your suggestion...
Thanks
Sorry, I don't think that's possible for privacy reasons Facebook doesn't allow it. You need to get people who like you application to install and authenticate it before you can find out more about them. However, I do remember someone managing to scrape the fans of a page before so maybe that's possible for applications as well...