Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
1.7k views
in Plugins by
closed by

In Facebook login plugin, user's image is not get full size. I have small fix for that.

Open this file: qa-facebook-login.php

1. Find and insert more field to get: username

$user=$facebook->api('/me?fields=email...

To like this:

$user=$facebook->api('/me?fields=email,username...

2. Find and replaces this lines:

'avatar' => strlen(@$user['picture']['data']['url']) ? qa_retrieve_url($user['picture']['data']['url']) : null,

To:

'avatar' => qa_retrieve_url('https://graph.facebook.com/'.@$user['username'].'/picture?type=large')

You can change type of image size:


square --> 50px x 50px
small --> 50px x variable height
normal --> 100px x variable height
large --> max size with 200px x variable height

Done!

closed with the note: This is the small fix to sharing

1 Answer

+1 vote
by
 
Best answer
This is the small fix to sharing, i want people found it.
...