Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

How to get the cover #311

Open
vdrouet opened this issue Feb 22, 2014 · 1 comment
Open

How to get the cover #311

vdrouet opened this issue Feb 22, 2014 · 1 comment

Comments

@vdrouet
Copy link

vdrouet commented Feb 22, 2014

I want to get the Facebook cover when a new user logIn, this field is not in the $fbdata array. Any idea how can i get it in the facebook graph using fosfacebookbundle ?

Thanks a lot

@tvl83
Copy link

tvl83 commented Mar 3, 2014

Using the Graph API Explorer I found out that /username?fields=cover will give you a cover object

{ "cover": { "id": "12345678900987654321", "source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/t1/s720x720/1234567890.jpg", "offset_y": 0 }, "id": "1234567890" }

so $this->container->get('fos_facebook.api')->api('/me?fields=cover') will get the object for the current user logged in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants