Lack of interest Facebook Helper

  • Thread starter Thread starter ragtek
  • Start date Start date
This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.
R

ragtek

Guest
Pls allow us to add own perm params to
XenForo_Helper_Facebook::
PHP:
public static function getFacebookRequestUrl($redirectUri, $appId = null)
{
$perms = 'email,publish_stream,user_birthday,user_status,user_website,user_location';
 
if (!$appId)
{
$appId = XenForo_Application::get('options')->facebookAppId;
}
 
return 'https://graph.facebook.com/oauth/authorize?client_id=' . $appId
. '&scope=' . $perms
. '&redirect_uri=' . urlencode($redirectUri);
}

probably as 3rd method param?;)
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
atm the only way to have this without too much c&p is to extend the whole class, which is IMO still too much c&p :P

PHP:
class Ragtek_XXX_Facebook extends XenForo_Helper_Facebook{
 
    public static function getFacebookRequestUrl($redirectUri, $appId = null)
    {
        $perms = 'email,publish_stream,user_birthday,user_status,user_website,user_location,friends';
 
        if (!$appId)
        {
            $appId = XenForo_Application::get('options')->facebookAppId;
        }
 
        return 'https://graph.facebook.com/oauth/authorize?client_id=' . $appId
            . '&scope=' . $perms
            . '&redirect_uri=' . urlencode($redirectUri);
    }
 
Top Bottom