+ Start a Discussion
mayank_friend52mayank_friend52 

Can we use API to query Facebook pages.

Hello ,

I want to  integrate Facebook to my Visualforce Page and want to search Facebook Pages when user enter the Page name.

Is there is any API to query the Facebook Pages?


Thanks,
Mayank Agarwal
Jason Curtis NBSFDGJason Curtis NBSFDG
Hi, Mayank, Facebook has a whole site for devleopers that goes over what is available via the APIs:
https://developers.facebook.com/

And it is a little old, but there is a Facebook Salesforce Toolkit that might help you out:
https://developer.salesforce.com/page/Facebook_Toolkit

Good luck!
mayank_friend52mayank_friend52
Thanks Jason, for the quick response.

 I gone through your links and find it very useful.
Could you please suggets some APIs for linkedin for the same.


Thanks,
Mayank Agarwal
Jason Curtis NBSFDGJason Curtis NBSFDG

LinkedIn has its own app on the AppExchange: https://appexchange.salesforce.com/listingDetail?listingId=a0N30000004fovtEAA, so you may not be able to get as much info as you would with Facebook, but here is their API site:

https://developer.linkedin.com/apis

Best,
 

Jason

mayank_friend52mayank_friend52
Hello Jason,

Thanks for your response.

I am able to find the people on Linkedin using linked API, but when i try to find companies, then there is no result.

For Companies, i am using this (below code) i found on Linkedin Developer Site:

{http://api.linkedin.com/v1/company-search:(companies:(id,name,universal-name,website-url,industries,status,logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,locations,description,stock-exchange,founded-year,end-year,num-followers),num-results)?count=20&sort=relevance&keywords='+linkedinsearchstring1;}

where linkedinsearchstring1 is the name of the company to be search.

Please suggets some ways to accomplish this.

Thanks,
Mayank

Jason Curtis NBSFDGJason Curtis NBSFDG
Hi, Mayank, it looks like to query Linkedin for companies you need to authenticate as a user and have an access token, see here:
https://developer.linkedin.com/documents/company-search
mayank_friend52mayank_friend52
Hi Jason,

Thanks for the response.
But after going this link and implementing them in my code, i am still unable to search the company.

Here is the snippet of my code,

'http://api.linkedin.com/v1/company-search?name='+linkedinsearchstring1;

where linkedinsearchstring1 is the name of the company to be search.

Please tell me why this is not working properly.

Thanks,
Mayank
Jason Curtis NBSFDGJason Curtis NBSFDG
Are you authenticating as a user with an access token?
Jason Curtis NBSFDGJason Curtis NBSFDG
Hi, Mayank, did you resolve this, if so, can you share what was the issue and mark the question solved? Thanks.

mayank_friend52mayank_friend52
Hi Jason,

I am still struggling with this (facebook).
Now as I am able to show post from pages, but with no like or comment links associated with them.
As user  wants to like or comment a post. Is there api for this also.

Thanks
Mayank
Jason Curtis NBSFDGJason Curtis NBSFDG

Mayank, glad to hear you are getting closer, here are a couple of links that may be helpful for integrating comments:
http://socialmouths.com/blog/2012/02/16/add-facebook-comments-to-your-blog/
https://developers.facebook.com/docs/plugins/comments

Best,
 

Jason

mayank_friend52mayank_friend52
Thanks Jason,

but this is not working.
I am still unable to post a comment using facebook api.

Thanks,
Mayank
mayank_friend52mayank_friend52
Hi Jason,

Thanks for the links.
It help me a lot. Now I am able to post a comment on my profile using Facebook API.

Can it be possible to post  a comment on others' post also?

Thanks,
Mayank