Search code examples
sessionfacebook-rest-api

Obtaining an old REST Session key


Because facebook hasn't migrated certain functions over to GRAPH yet, I still need to make some calls via REST. Unfortunately, there doesn't seem to be a way to obtain a REST session key for users who accept my application today.

Is there ANY way to request a REST session key from facebook? I make almost all of my calls via GRAPH, but until they finish migrating features I'm stuck without one....

Thanks in advance!

DW


Solution

  • All REST API methods which required a session key should just fine with an access token.

    I just tested the links.preview method you mentioned before:

    https://api.facebook.com/method/links.preview?url=http://www.google.com&format=json&access_token=<REMOVED>

    Response was:

        {
       "href":"http:\/\/www.google.com\/",
       "name":"Google",
       "caption":"www.google.com",
       "description":"Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.",
       "media":[
          {
             "type":"image",
             "src":"http:\/\/www.google.com\/intl\/en_ALL\/images\/srpr\/logo1w.png"
          },
          {
             "type":"image",
             "src":"http:\/\/www.google.com\/images\/google_favicon_128.png"
          }
       ]
    }