How to get Facebook group created date using Graph API - facebook

As I can get other details of group like members, feeds etc, but being an admin, I want a created date of group using graph API. Please help me...
Thanks.

There is no straight option, but there are two workarounds to achieve something (it's not 100% perfect):
you can get the date when the group was last updated: Group, using updated_time field
second option, you can create a doc, that the group was established, and when you will have created doc, you can access created_time field, on group docs: Group-Doc
Hope, that helps.

Related

Questions on LinkedIn Ads Data

Is it possible to get the name of a creative (ad) in LinkedIn? We see creative IDs but no table showing their name. We see campaign names in campaign history table but not ad (creative) names.
Also, there is a table (targeting_criteria_include_history) that talks about campaign criteria (which LinkedIn users had the ad show up) but it is all codes. Is there a lookup table that can help decode them?
There is a table called AD_ANALYTICS_BY_MEMBER_JOB_TITLE…with member_job_title as a column. And we’re assuming the lookup table for member_job_title is the table title…but the id’s do not match. For some they do but lot do not. Can you help shed some light on this?
We see that we can get clicks and impressions by job role, by organization, but it does not look like we can pivot the results based on multiple criteria, such as size of company and job title. We can see KPIs one dimension at a time. Could you see if that is true?
Thank you!
Ashish

Check time since added to a group in Facebook API

first of all, I want to say: My english is not good enough to write in a fully comprehensive way but I'll try to explain my problem...
Is it possible to get the date that the user has entered or added in a specific group ?
Or there's another way to achieve that ?
I've tried to use the Graph API url to find the user groups and parsing the data
https://graph.facebook.com/me/groups?access_token=CLIENT_TOKEN
There are another more effective way ? And how I can see the date from entry to the group ?
Is it possible ?
Thanks in advance
As far as I know there's no possibility to do that. There's the group_member table in FQL (https://developers.facebook.com/docs/reference/fql/group_member/), but it doesn't contain a date.

How to find Facebook group id by name

I have a Facebook application, which I would like to be able to read facebook group feeds.
I have a user-input feed url, that looks like this: http://www.facebook.com/groups/music.sharing/
To access the feed though, I can only use its id, like this: http://graph.facebook.com/[id of group]/feed
I cannot find anything for that in the reference, FQL doesn't allow querying by name so .. I'm stuck. Any ideas ?
Thanks!
Its not possible right now, there are multiple open "bugs" and another stating the issue...
All the ways I have tried have failed... e.g. (below would work for pages)
fql?q=select id from profile where username='music.sharing'
We are facing this same problem on our current project. It is not an elegant solution that uses the API, but for now we will be using a workaround by scraping the HTML of the group landing page. The group ID number appears four times on this page in the html via links. The most reliable way to search for the ID is to search for "cid=" as it only appears once (right now, anyway) on the page (what follows cid= is the numerical ID). You'll see what I mean when you examine the html of a group page.
If you found a more efficient solution, I'd be grateful if you shared :)
A possible alternative until bug resolution could be: if you are asking your users for permissions then you can ask for the additional permission, user_groups, and then query graph api http://graph.facebook.com/[id of user]/groups. The returned data has group name, id, version, bookmark_order.

How do I find my Facebook group ID?

My Facebook Group Url is: http://www.facebook.com/groups/284064464943140/
I've read that the group ID is in the Url labelled "id=" or "groupid=" but assume this has changed since there is no such tag in my Url.
I would like to use the group id to insert a group feed into our group website.
Thank you
For finding any facebook group_id or page_id or user_id
go to inspect element of page and find these in meta tags.
Group Id
fb://group/Here_is_your_group_id
Profile user_id
fb://profile/here_is_your_user_id
Page Id
fb://page/here_is_your_page_id
try at http://lookup-id.com/ , get facebook id and group id
Try http://wallflux.com/facebook_id/, it will guide you through it,
If you need the id for more group for which you are admin, a faster method will be to use facebook's Graph Explorer tool. You need to get access token for 'user_groups' 'user_managed_groups' and make a request by adding groups field:
me?fields=groups
click submit. This will print all of the groups you are member of and corresponding IDs.
Update: Sorry folks, it seems that Facebook is pulling out the API for groups you don't manage. This whole topic might be obsolete.
You can look for post_form_id in the source code on Facebook but that is not always accurate.
For groups that do not have the ID in the Facebook URL you can get the page or the group ID using this free simple online tool:
http://whatismyfacebookid.com
You can try https://commentpicker.com/find-facebook-id.php to find a Group ID by entering the FB Group URL. Most of the other online tools don't work anymore.
You can also find it in the source code like mentioned in the other comments. Go to the group page, right click and choose "View Source code" and search for fb://group/. The Group ID will be displayed after the slash or after ?id=
Based upon graph api, you can get group ids as follows:
$facebook->api( '/'.$userId.'/groups', 'GET', array( 'access_token=' => $userToken ));
by iterating through its results.
1) Go to Facebook (www.facebook.com)
2) Click on the little triangle on the top right
3) Select "Manage Groups"
4) Ensure you are on the "Groups" not "Discover" tab (check top left for that)
5) Click on your group
6) Look at your URL from your web browser, it will display something like http://www.facebook.com/groups/12345/about
12345 would be your group in this case.
I hope this helps
Regards
Heider

Fetch a group object with Graph API using group alias?

How can i fetch data with group page alias ?
Take for example this group: http://www.facebook.com/groups/toroneradio/.
Making request to https://graph.facebook.com/toroneradio gives me back:
"message": "(#803) Some of the aliases you requested do not exist: toroneradio"
Making request to the graph API with the group's id: https://graph.facebook.com/173246339390721 works OK.
It works great for pages though.
Looked at FQL groups table but name is not searchable. (FQL Groups table)
Also looked for some documentation and in FB bugtracking, couldn't find anything.
Is there way to get programaticly the group id from group alias or directly to get Group graph object?
Thanks, in advance!
The Easy Way
If you haven't done so, join the Facebook group which you want to fetch the group ID
Use the Facebook Graph API explorer
Access your list of groups via http://graph.facebook.com/me/groups
Search for the group and the ID will be listed in the object
If you are doing it through your Facebook application, all you need is to grab an FB access token before you do the FB Graph API call (read up the documentation here, especially the Authorization section)
The Hard Way
In case the easy way doesn't work (or if you feel iffy in joining the group), here's the sure-fire way to do so:
Start up Firebug and enable the "Net" tab
Bring up Facebook - check that the Net panl will show all the HTTP requests that's happening
Click the "Clear" button so that you have the panel in the blank slate
Click on the link of the Facebook group that you wanted to retrieve the Facebook ID
Look out for a GET request to generic.php - that would be the very first request, but hunt it down if it's not. Click on the [+] box to expand the details
Click on the "Parameters" tab and you'd see a key-value dictionary of the request. There'll be two fields in there called "key" and "sk", both of which would carry the same value like "group_1656399367890"
The group's ID will be the numeric value after "group_" (in this case, it'll be 1656399367890)
Hope that helps!
By using FQL:
SELECT id FROM profile WHERE username='groupname' AND type='group'
Just figured this out! Do this: http://graph.facebook.com/search?q=[ALIAS]&type=group