Which version of facebook graph api am I using? - facebook-graph-api

At thef8 event, Graph API v2.0 was introduced. I have integrated the graph api on my website, but I want to find out which of the version I am currently using.
Is there a method or a way to find out this?

To make a call to a versioned API, simply append /[version] to the API call after the host name. To call version "v2.0", use "https://graph.facebook.com/v2.0/". Versions are guaranteed to be available for minimum 2 yrs after they are released.
Unversioned Calls: Unversioned API calls point to the oldest available version of the API.
So if your app makes unversioned calls, then you are using the oldest graph API.
For more info see: https://developers.facebook.com/docs/apps/versions

Related

Updating API Definition via Version Control

I am using Postman to house my API definitions and collections. I know that you are able to update collections via Postman's custom version control (fork, merge, etc.). This works wonderfully except for when I regenerate the collection from the API definition, any previously merged changes are gone.
Is there any way to update an API's definition while using Postman's version control? It has been such a nice feature for my team that I do not want to give it up.

Calling Microsoft Graph from Google Appengine Python

I need to call the Microsoft Graph from a Google Appengine Python application, this requires oAuth2 authentication.
Google provide the Google API Client Libraries for calling their own REST api's (such as Calendar / Drive / Youtube etc) - is it possible to use the library to call other non Google REST API's such as Microsoft Graph?
If not has anyone used another library to do so from Appengine Python. You can not use the Microsoft supplied python SDK as this requires python version 3+ and Appengine only supports 2.7.
Thanks in advance,
Ian
The authorization token you receive from Google will only work with their APIs. You'll need a separate token for use with Graph. For this you can use ADAL library.
Since you need to stick with 2.7, you'll need issue REST directly. The existing SDK (as you noted) requires py3. You may want to take a look at restclient for this. Its been a while since I've had to use this lib but I recall it really simplified calling REST endpoints.

Migration path for Fql.multiquery

I'm new to Facebook development. I'm working on migrating an existing app in accordance to the Graph API upgrade guide. I'm looking for guidance around calls such as api.facebook.com/method/Fql.multiquery.
My question is: does this type of API need to be upgraded as well, or does it only apply to graph.facebook.com calls? I want to ensure that api.facebook.com/method/Fql.multiquery calls will still work after 4/30/15.
You may want to take a look at the Batch Requests of the Graph API. You can also specify dependencies between the requests.
Calls to http://api.facebook.com/method/Fql.multiquery will no longer work. The REST API is long deprecated anyway.
As #luschn said, you have to migrate to the Graph APIs batch requests, and use the /fql endpoint. You can only use FQL if you have a v2.0 app, and not higher.

Error: REST API is deprecated for versions v2.1 and higher

I use this script and I have the following error:
REST API is deprecated for versions v2.1 and higher
Do you know why I'm getting this?
The error says it all. REST API calls are no longer supported by the API in Graph API v2.1. You should get up to date and use the official Facebook SDK to create your Facebook application.
v2.0 is still available until August 7, 2016. So, you can still use the REST API if you like. You are probably getting this because your API calls are either unversioned or they are versioned to v2.1. See this

How to programatically create a Facebook application via JS SDK or Open Graph API? (createApplication)

I know there are currently two methods that can be used to do this, documented (poorly) on Facebook's Developer site:
The old (depreciated) JavaScript SDK FB.Connect.createApplication
A new FBJS method Facebook.createApplication (only for use on Canvas pages)
The problem is that I not using a Canvas app that runs FBJS, and I am not using the OLD JS SKD. I am trying to do this on a regular old PHP website that uses the current JavaScript SDK and the PHP SDK.
I am doing the usual Open Graph API calls and such with the current SDK, so I understand the basics, I'm just not sure how to proceed to use the OLD SDK, or if (fingers crossed) I even really have to?
So, is there a way to make new Facebook Apps with the current JS SDK? Or with a server side PHP SDK call to the Graph?
And if not, how do I call the old SDK to do this?
Thanks
UPDATE: You still can't do this, but there is an official bug in the Facebook tracker about it: http://developers.facebook.com/bugs/295627350461318
There isn't outside of the OLD SDK as you indicated. It's been removed (what Facebook calls "deprecated"). I put in a feature request recently for them to add it back into the API:
Me:
The Facebook Developer tool is
considerably lacking in features. We'd
like to be able to create a third
party application that adds layers of
functionality to the developer
application, but we'd need to be able
to create and administer applications
via the Graph API.
The Graph API supports querying for
information on existing applications.
To create, administer or delete
applications developers must go to the
Developer Application.
Them:
------- Comment #1 From Jeff Bowen 2010-12-07 16:59:12 (-) [reply]
------- Thanks for the request. We’ll track this on our wishlist