0 Replies Latest reply on May 8, 2016 1:33 PM by Hoai Pham

    Picketlink social with Facebook

    Hoai Pham Newbie

      Hi all,

       

      I tested picketlink social version 2.7.0.Final (the lastest on maven repository) with Facebook.

       

      It is ok, but Facebook API was changed.

       

      I read code and see Picketlink use old API to retrieve user's facebook profile:

      https://graph.facebook.com/me?access_token=EAAX5xsfaKTxxxxx

       

      Facebook only returns: ID, name, that it!

      Example:

      {

        "name": "Phuong Linh Pham",

        "id": "1311745968841595"

      }

       

      ------------------

      After I changed the params

      https://graph.facebook.com/me?fields=name, email,picture(large)&access_token=EAAX5xsfaKTxxxxx

      Facebook returns full data that I want.

       

      {

        "id": "1311745968841595",

        "name": "Phuong Linh Pham",

        "email": "xxxx",

        "picture": {

        "data": {

        "is_silhouette": false,

        "url": "https://scontent.xx.fbcdn.net/v/t1.0-1/xxxxxxx"

        }

        }

      }

       

      ---------------

      Well, I wonder that that Picketlink Social use old API and can't get full profile of facebook's user or I don't know other way to get it. Please help.