質問

I am working on the Facebok PHP SDK v.3.2.2.

I am facing issues in logout, when I click on the link it goes to facebook home page.

SDK Code:

$logoutUrl = $facebook->getLogoutUrl(array('next' => 'http://[xxx.xxx.xxx.xx]/facebook/examples/logout.php'));

In HTML Code, onclick of button it call the logouturl.

I tried multiple ways of look in Stack Overflow and Google but could not found any solution.

Need Help !!

役に立ちましたか?

解決 2

I have solved the problem using link. Due to some reason it wasn't working before, but after some changes it work. If anybody needs the code, you can contact me on akshay.sarkar.dbit@gmail.com

他のヒント

try this;

$logoutUrl = $facebook->getLogoutUrl(array('redirect' => 'http://[xxx.xxx.xxx.xx]/facebook/examples/logout.php'));

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top