Questions and Answers

How do I collect points?

  • +4
    Chosen as best answer
  • +1
    Posted answer
  • +1
    Posted question
  • +1
    Thumb up
  • -1
    Thumb down
113

by Eugene in Coding about March 28 open - report

SocialEngine 4.8 and broken Facebook login

This should be useful for SocialEngine based communities.

 

Since Facebook rolled out new API version Facebook login got broken. There is a quick workaround for this

1. open file application/libraries/Facebook/Base.php

 

2. look for method getAccessTokenFromCode (it should be at line ~596)

 

3. Replace lines

$response_params = array();
parse_str($access_token_response, $response_params);

with one line:

$response_params = json_decode($access_token_response, true);

Answers: 2  •  Score 2  •  Views: 362

2 Answers
Browse by
  • 1

    by Yuval Jacobi about April 24

    Thank you so much Eugine, 

    I was banging my head on the wall for a few weeks until I got here...

    Damn Facebook API...

    • Score: 0
  • 3

    by Kristy Kav about April 6

    Thanks!!!

    You are a lifesaver!

You must login to post an answer.