Get Facebook event admin from API - php

Given the id of an event, is there a way to get the Facebook ids of the admins of that event through one of Facebook's many API's? The event is public. I can I know you can get the creator of the event but there may be admins other than the creator and I want to get those people as well.

Nope, You can only retreive a list of current members
Facebook Developer Manual Thing

As mentioned in this post: How to get Events Admin of Facebook event using Graph Api iphone dev?
You can try this:
https://graph.facebook.com/{event_id}/admins

Related

How do I find the timestamp of all the Facebook "likes" of an event photo?

From various postings I know that the timestamp of a 'like' is stored by FB, notably from here:
https://developers.facebook.com/docs/reference/opengraph/action-type/og.likes/
But what I'm having trouble getting clear is how, given a photo that's been posted to an event, I would get all the picture's likes and the time each like was created (and of course, by who).
As far as I can tell it would have to go something like this:
Get each user invited to event.
Get each user's likes.
Check if any of the fbid's of the likes match any of the event photos' id's.
But surely step 2 would necessitate me logging in on behalf of each invited user and anyway, wouldn't the above really poll FB too much? So I am assuming my procedure is incorrect.
Could anyone tell me what the fql would be to get a photo of an event and then the users who like the photo and then the timestamp of the like?
Thanks in advance!
Short answer, you can't. The FQL or Graph API doesn't provide such information.
There are two things to differentiate in Facebook for developers:
The FQL or Graph API, which lets developers access the Facebook data (it means everything hosted on Facebook servers and saved in Facebook databases) like events, photos, videos, posts, etc.
Open Graph, which lets apps tell on Facebook what happened on the app side : we are talking about the app's own content and requests.
When trying to grab information from an event (content managed by Facebook), you are in the first case. As you can see here, here or here, likes are never described by a timestamp.
What you saw here deals with Open Graph, which can't be applied on Facebook events.

php: retrieving infos from facebook group

i'm looking for a way to code some statistics for a facebook group which displays infos like most active member, most commented post and such.
i've tried to parse the group's email-notifications, unfortunately facebook doesn't notify on each event.
so i was thinking about curling directly from the facebook group.
is there a way to do this or is it possible through the facebook api?
thanks
I think your best bet is Facebook Grap API.
Check this Graph API - Group : http://developers.facebook.com/docs/reference/api/group/
Hope this help!

PHP posting on page wall

I have a website where users can post jobs for free. How can I link these posts to a facebook page about this website? I don't want the users to login to fb.
At this moment I post them to twitter and then using selective tweets to post them on my page. But selective tweets is not able to post logo's specific for that job.
I created a fb app. Did not select anything just gave it a name and got an appID and appSecret. I dont now what to select in "Select how your app integrates with Facebook". Becouse it is not a mobile app and it is not a website with fb login.
Kind regards.
you can use share on facebook facility of facebook ,from http://developer.facebook.com.
you can easily add this to your website.
have fun!
You can do this easily via MYSQL and PHP, depending on how your current site is setup. What i would do is store the jobs into a separate table while saving, like this
(table) Facebook
pageid //numerical value
header //job title
message //job description
So that you can use it for the next part.
Create an application via Facebook and give it authentication to users and your Facebook page.
by adding this application to your page you can then call something like :
$facebook->set_user($user, $session_key);
$facebook->api_client->stream_publish($item['header'], $item['message'], $item['pageid']);
Using your keys from facebook.
Then you can run a Cron that updates every x minutes, and after it has posted it, in an array, you can clear the table for the next row of jobs.
Let me know where you are on this and ill try to help as much as possible.

Creating Events on behalf of a Group using the Facebook Graph API

I've been Googling for an answer for several days now, but most of the solution to similar questions seem to use the deprecated REST-API.
I'm trying to create an event on behalf of a group where I'm the owner, using the Facebook Graph API in PHP. I can publish an event to my own wall and even to a page using a page specific access-token, but since the group doesn't have any access-token I'm using this:
https://graph.facebook.com/{$group_id}/events?" . {$user_access_token};
But something is going wrong and the event gets published only with me as the Owner. My permissions are: "stream_publish, user_groups, create_event, manage_pages"
Any Ideas?
You need to add the undocumented:
page_id={$group_id}
parameter to your post.
(as well as posting to the groups event stream)

Facebook PHP API - Allow users to add events to a Facebook page

I have a facebook API integration that I have almost finshed integrating, but am stuck with one last thing.
The idea of the page is that users can add an event to the page's wall itself. I can get it to add an event to their personal events, and if I loop through my own (/me/accounts) I can get an access token which does post the event to the page's wall.
Does anyone know how you let the users add the events.
PS> I have the manage_pages, create_events, offline_access permissions etc if that's useful.
Thanks in advance
What i think is, in order to add an event for the page, you have to be the Admin for it, thats why it is letting you add events but wont let other users create events.

Categories