Facebook Callback appends '#_=_' to Return URL

前端 未结 23 1748
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 14:56

Facebook callback has started appending #_=_ hash underscore to the Return URL

Does anyone know why? What is the solution?

23条回答
  •  花落未央
    2020-11-22 15:11

    For PHP SDK users

    I fixed the problem simply by removing the extra part before forwarding.

     $loginURL = $helper->getLoginUrl($redirectURL, $fbPermissions);
     $loginURL = str_replace("#_=_", "", $loginURL);
     header("Location: " . $loginURL);
    

提交回复
热议问题