I am new to facebook APIs. I basically want to know the difference between javascript sdk and graph API. And are there any limits for calling these APIs ?
https://developers.facebook.com/docs/ is a good way to start with.
Javascript SDK is an SDK provided by facebook to interact with Facebook.
And Graph API is the primary way to get data in and out of Facebook and it can be used with any of the available SDK's.
Better start with the following documentation available with FB and hang around there for basic understanding of how FB Apps work.
Try to google around or search in stackoverflow before posting a basic question.
Related
I wonder what is the process to integrate Google My Business API into a React app. The main objective is to render the google reviews in the website.
I have been searching in Google documentation but haven't really found any useful guide.
Any help would be much appreciated.
Thanks!
The fundamental way is to find the API in the google API store and then render that into the project if there's one. the process includes enabling the API from the store and using REST methods like HTTPS to call them in your project. it's the same for react and all the projects.
Here's a basic setup link
First, you have to apply for Google Business Profile API, for that you need an Account that have verified Google Business Profile. Then you need to implement OAuth2 for authenticating the account that have Google Reviews, once thats done you can access reviews from account that are authenticated. This process may take 2 weeks to 1 month.
I'm writing a mobile application using JavaScript and HTML and I'll pack it using PhoneGap, so at the end it will be a native one.
One feature of this App will be the "Import from Google Docs" one. I'll set a Google account up for the App and put some documents in it so they will be available from the application itself. This seemed pretty straightforward, until I hit a wall with OAuth2.
What I cannot figure out is how to provide my application with a way to authenticate itself using a pre-authenticated token (I think this is the use of the "secret key" in the OAuth workflow). The problem seems to be that on the Google API guides I read, when speaking of JavaScript integration they always refer to a web application which - as part of the OAuth flow - will eventually ask THE USER to authenticate with HER Google account (and not my application's one) and never use the "secret key" (we will leave the problem of embedding a secret key into an application for later).
What am I missing here? Does anyone have done something similar and care to explain it a bit?
I recently presented OAuth at BlackBerry Jam Americas. You can view the recording of this presentation here which I think may help answer some questions about the differences between OAuth and OAuth2, and how to implement them in a PhoneGap (or WebWorks) application:
http://hosting.desire2learncapture.com/RIM/1/watch/63.aspx?q=social
Also, my colleague Chad recently published some sample code that you can use in your own app development. We have published sample BlackBerry WebWorks applications here that demonstrate how to integrate OAuth with Twitter, FaceBook and Foursquare:
https://github.com/blackberry/BB10-WebWorks-Samples
Good luck!
I am developing a webpage for a company which needs to show the company's linkedIn follower count. I have no idea how to implement this. Please help me out.
The question you're asking is more complicated than a simple answer can give. In order to implement LinkedIn you'll either need to use the REST API or the Javascript API. The general information on company lookup is here. In order to get specific fields, you'll also need to understand the LinkedIn Field Selectors/
In the REST API, assuming you have successfully implemented the OAuth Authentication you would make the following call (this is to get the follower count for LinkedIn, which has an ID of 1337:
http://api.linkedin.com/v1/companies/1337:(num-followers)
In the Javascript API you could do something similar with a Raw call:
IN.API.Raw("/companies/1337:(num-followers)")
If you're going to be using the LinkedIn APIs from scratch, you should work through our tutorials - we don't have any ASP specific tutorials but there is a good C# example/library linked from our Libraries and Tools page that you can work from.
Hi I have integrated Facebook with asp.net web site through open id But now it is not working . I think Facebook change process of authentication.
So there is any way to integrate Facebook account with asp.net web site . Please suggest me usable link or samples.
I highly recommend the Facebook C# sdk which provides support for the full breadth of the API and is frequently updated. It also has quite a good bit of documentation (which I won't re-print here, since it would be specific to the library and if the link moved or the library went away, wouldn't have any value)
If all you want to integrate is auth, I would still recommend using the library if for no other reason an it handles the signing part for you, and gives you room to do more in the future.
Facebook doesn't use OpenID, they use OAuth 2.
Oldish, but I think still accurate for Asp.Net
http://osnapz.wordpress.com/2010/04/23/using-asp-net-with-facebooks-graph-api-and-oauth-2-0-authentication/
Here's another for MVC3
http://www.codeproject.com/KB/aspnet/net_mvc_facebook_oauth.aspx
Try this Gigya they provide free services through you can put social authentication to your website. But in free service their little backlink comes but for premium users there is no backlink.
I have been asked to integrate facebook chat in my application using javascript. I went through the chat api but that needs a domain url. I have to integrate the chat without the domain or the site url. I tried populating the online friends list through graph api, and I am able to successfully authenticate using the client flow example, but it does not redirect to my local host: http://localhost:8090/chatplugin/success.html. An error pops up telling me the resource is not found.
Is it possible to integrate FB chat using the graph api? I'm new to FB apis and I need more info.
Thanks:)
Short answer: no.
Longer answer: The Graph API lets you access all the information that is stored in Facebook's social graph; the social graph is the giant web that keeps all the information on people, events, messages, etc. Chat isn't part of the graph, it's a separate application, that also uses info from the graph to populate it.
While there may be other ways to sneak around (which I don't know), the Graph api doesn't provide what you need.
Please see the API available on Facebook API.
https://developers.facebook.com/docs/chat/