Get number of members in linkedin group? - php

I am working on a wordpress website where I need to get the number of members in a particular linkedin group.
The person viewing the website will likely not be logged into linkedin, or ever have a profile.
This is simply for a Check out our linked in group and join 12345 other members! type thing.
Is there a simple way to get the number of members in a linkedin group?
This can be PHP using a rest API, a Javascript API, or whatever works as long as it can work with wordpress.

You would pull the group membership totals from the LinkedIn API via the Groups API.
Unfortunately, in order to comply with the API platform guidelines, you can only retrieve and show the membership totals of a group to the user if the user has authenticated your application against the API via OAuth.
Once you have authenticated the user, you can retrieve the information from the Groups API via a call along the lines of:
http://api.linkedin.com/v1/groups/XXXX:(id,name,site-group-url,num-members)
Where XXXX is the group ID.

http://blog.linkedin.com/2011/11/10/groups-analytics/
Can this information be useful for you?

Related

I am trying to get some details ( username, description, Posts Count, total likes & total comments ) from Instagram user*

I am trying to get some details ( username, description, Posts Count, total likes & total comments ) from Instagram user
First i get the code from api.instagram.com with scope user_profile and user_media
https://api.instagram.com/oauth/authorize?client_id={appId}&redirect_uri={redirectUri}&scope=user_profile,user_media&response_type=code
After the user accepts the permission and allows the sharing of information it I got the code in my redirectUri.
then using that code and developer auth details I get the access_token by
https://api.instagram.com/oauth/access_token endpoint with fields client_id, redirect_uri, grant_type = authorization_code, client_secret and the code.
in response, I got the user_id and the access_token.
Then I try to get the username and user details by calling the below endpoint Refrence
https://graph.instagram.com/me?fields=id,username&access_token={access_token}.
in response, I got the username and id.
Now I am not sure how to get the details like ( username, description, Posts Count, total likes & total comments ).
What I have tried
I try to get the details by calling the https://www.instagram.com/someone/?__a=1 it works fine sometimes but now it's not returning anything.
Instagram Graph Api in this I am getting the error the access token is not valid. ( not sure which access token to user Instagrams or facebooks )
You're currently using the Instagram Basic Display APIs (official docs) which are highly limited and do not include any of the information you seek, apart from the username.
Instagram chose not to include this information in the Instagram Basic Display APIs, while they offer them in the Instagram Graph API (official docs) instead.
However, the Instagram Graph API only works with Business and Creators accounts, therefore you can not use it for most Instagram users.
Furthermore the 2 APIs do not communicate with each other, so you can not use the Basic Display Token on the Graph token, even if the user is business.
Bottom line:
if you're planning to retrieve this information for normal users (non-business and non-creators), you won't be able to use any official API
if you're planning to retrieve this information only for business or creator accounts, you need to switch your entire logic to the Instagram Graph API, including the login flow, which needs to happen via Facebook => Page connected to IG.
It's a pity, I know, but that's the current situation.
EDIT: scraping from https://www.instagram.com/someone/?__a=1 is very complicated, Instagram has a great anti-crawling policy and will block scraping very well.

Twitter REST API Retrieve user interest

I'm experimenting with twitter API, and have successfully authenticated the user.
But i also need a way to get the user interest.
Also followed this documentation. Here I could not find a way to get user interest Or do I need a third party application. Thanks
There is no API from Twitter that provides the interests of an individual user account, even in the Ads API. The Ads API (which you need to apply for whitelisted access to) will enable interest-based targeting for promoted Tweets, but it will not provide user-level interest data.

Is is possible to join FB group / Invite Friends using api

I am working on facebook api using php. I did a functionality to get the search feature in facebook (i.e) by user, group, etc.
Now i am in need to invite the search result user and join that search result group.
I tried more in google but i am not getting any source to join a group.. Is it possible to do that using facebook api?
Please help me on this..
Yes you can send invites to the users to join a group. Here's the documentation.
But the condition is that:
An app access token can invite any app users to a group created by that app.
The request must be made with an app access token and this same app must have created that group. So, you cannot send request to the friends if that group was not created using an app.
Edit:
If you are asking that a user can join the group with Graph API, it's (of course) not possible!

Is there a way to get online users count for a Facebook group?

You have Graph Api, and you have the token of the user. When a user is member of a group, and we know the group ID.
Is there a way to get the online users count of a Facebook group via the API?
Short answer to your question:
Is there a way to get the online users count of a Facebook group via
the API?
NO, you can't.
The closest result you can get is by using the members connection of the group object:
All of the users who are members of this group (can only currently
return the first 500 members).

Facebook post limits

I created a FB game which allows users to invite there friends. Via the Graph API I retrieve the list of friends and the user selects which friends they want to send a invite. Next the system posts this invite on the friends profile page. This works fine.
But when the users wants to send more than, say 10, invites the API returns this error:
(#341) Feed action request limit reached
I assume this means there is some sort of limit on the amount of posts the system can make on behalf of the user. The users is notified that there will be send an invite to his friend.
Is it possible to get your app certified or something so that the limit will be upgraded. If this isn't possible is there an other way to invite a greater sum of friends.
Regards,
Paul du Long
The Netherlands
News Feed was not intended for invites. Use requests instead:
http://developers.facebook.com/docs/reference/dialogs/requests/

Categories