Get photos of an event wall on Facebook - facebook

I am trying to do something that seems really simple when you take a look to the graph API doc on facebook developper web site : get the photos that have been posted on an event wall !
However everytime I try to do this request (a GET request on //photos) the only thing I get is an empty "data" array. And yes I have the permissions that are asked by Facebook...
Is it a part of the API that is not working ? (Please if there is guy from Facebook around here...) or is it me ?

I'm not sure why /event-id/photos didn't worked (yet mentioned in the docs); but there's a way (full-proof)-
<event-id>/feed?fields=picture
You'll get an array in result; for each object if picture object is available or not.
I think this is the only solution, since if you open your event nowhere you can find the thing such as "event photos". The photos published by the users on an event are just a feed, there's no album(s) created.
Hope it helps. Good luck!

Related

facebook graph api - get posted images from users on page

I've searched a lot, but I did not get any full information.
I need to get all images which are posted to a specific fb page by users. And do I really ned to get that app reviewed? I only need this application during an exhibition over a weekend.
The fans take a picture at our booth and post it on our timeline. These images are to be displayed automatically on a screen.
How do I get to the pictures via the Facebook API?
update:
My first move was with the following:
graph.facebook.com/v3.1/[pageid]/feed?fields=picture,message,from
Since I need only the posts from others, I'm going to filter the response object.
Is there a better solution?
Okay, so PAGE-ID/visitor_posts?fields=picture,message did the trick!

Facebook. Fan page. Wall. Pictures

I have some problems with Facebook Graph API and want to ask some short questions.
Firstly. Is there any method to post multiple images in single wall page post using API? Any method? I want take some photos, text description and say to facebook through API: "I need your wall post with this data". After search I did not find any chance to do it.
Secondary. I can add single photo with description to page wall (edge /{pageID}/photos), but I can not edit through API (edge /{photoID}). Interesting fact - facebook answers to API photo edit call with message "success: true", but nothing happens! Image stays unchanged. Maybe anyone knows why?
Thank you for your future advices and your patience.
You can´t post multiple pictures in one API call, at least not right now.
Are you sure you looked at the right spot? Keep in mind that there will be a picture posted with a caption, but there will also be a wall post. Maybe you have only changed the photo caption and it´s not visible on the wall. Take a look at the picture directly.
That being said, according to the API reference, you should get more than just "OK", you should get the post id in the result. i´d file a bug: https://developers.facebook.com/bugs/

wall posts and fb:multi-friend-selector

Firstly i know that the documentation provided by Facebook says that fb:multi-friend-selector can be used in pair with fb:request-form and that it could only sends inviations or requests.
I have more specific need and that is not only to make invitations/requests but also along with the previous to post something on selected friends walls.
I've tried everything but i cant take the id's selected from the fb:multi-friend-selector, so i'm unable to make this posts.
The doucmentation for fb:multi-friend-selector says: This interface includes a series of which are included for selected users in the form that gets submitted to your action URL.
Is it somehow possible to catch this id's?
I'm working on my app in C# .net.
I read in some of the previous posts that is treating problematics similar to mine that is impossible to do this, but i found application that works perfectly in way that i want to make my application.
Thanks in advance,
Ivan
You can access the selected friend's id in the page that you are providing in "action" of fb:request-form.I am working with PHP so i am able to get those selected friend's id as $_REQUEST['ids'].So try some equivalent methods in c# for this.And if you get the friend's id you can publish to their wall.

facebook graph api does not return all feed items on facebook page

at the time of this question, if you go here:
http://www.facebook.com/realplayer
you'll see six posts down, I have posted a photo with a message of "#highfive Cincinnati, OH"
but if you to either of these:
http://graph.facebook.com/realplayer/feed
http://graph.facebook.com/realplayer/tagged
the JSON that is returned seemingly includes everything on the wall, except for MY post. there is another photo post from someone else down below mine, and it is showing up (and both my photo and his photo are in the "Fan photos" section)
obviously, since I can see everything with these links already, it appears that access_token is not a part of the equation... BUT, some more info:
if I use an access_token from a session that isn't me, I can't see the post in the JSON
if I use an access_token from MY logged in session, then I DO see the post in the JSON
so I'm very confused.
if everyone in the world can see those posts on the wall without even authenticating, then I expect all of them to come back in the graph api as well.
anyone have thoughts on this?
I am aware of the "manage_page" permission... which I can use to get a list of accounts and special offline access tokens for those pages... and that's something I can explore... but it seems like alot of work when my post seemingly SHOULD be there in the graph
well looks like FB has this nice little anti-spam feature for pages... such that a non-admin can't write lots of messages on your page. what's interesting is that facebook uses similar "silent treatment" techniques that StackOverflow uses ( https://blog.stackoverflow.com/2008/09/podcast-21/ )... so when I look at a wall that I've been "spamming" I will see all of my posts... but no one else will.
I was able to create a new test account and get about 3 or 4 messages on a page before it started blocking me again
so probably the Graph API is working as designed :)
========================
UPDATE: this appears to only be part of the problem. I have constructed another page and app and been doing testing:
http://www.facebook.com/pages/RP-Test-Page/116735865065591
note the entry for "#highfive Orlando, FL" ... even an unauthenticated user can see this entry from the actual page... but there is seemingly no way for me to get it back through the API. He only posted once, so it can't be an "anti-spam" thing (you wouldn't think).
I have obviously tried the Graph API (with and without my own access token)
I have tried FQL (with and without my own access token)
and I have followed this post:
http://en-gb.facebook.com/topic.php?uid=10381469571&topic=3815&post=51980
in order to request manage_pages and offline_access extended permissions from myself and use that to get the /me/accounts and then get the "impersonation" access token (whew)... STILL NOTHING
there must be some other super security thing going on. is it not possible to reliably get all of the wall posts from a page?

Retrieve group events with Facebook Graph API

I'm a little confused trying to adapt to the new facebook Graph API.
Whereas before I would have used events.get, I'm not entirely sure what to use now!
I can't seem to get a list of a group's events through fql, nor through the Graph API itself.
Any pointers? Should I keep using REST?
In the documentation under "Connections" it doesn't appear that you can get /events. Or for that matter /albums or anything useful...
http://developers.facebook.com/docs/reference/api/group
However, if you know that something is an event (which you could probably do because the link in the data has "eid" in it - I can't see a way beyond that) then you can call the event URL (http://developers.facebook.com/docs/reference/api/event) and get the details that way.