Report this

What is the reason for this report?

Problem with JSON PHP extension.

Posted on March 11, 2014

Hello, how i can install that extension? I install cURL and that’s ok… but now i need to install that. I create facebook connect on my web page. Here is link with my error : http://stefanvukovic.me/facebooksdk/fblogin.php

*i send ticket for this… and i’am sorry… now i see this community.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

sudo apt-get install php5-common

when i do that i get this : <br> <br>Reading package lists… Done <br>Building dependency tree <br>Reading state information… Done <br>php5-common is already the newest version. <br> <br>And my error is this : <br>“Fatal error: Uncaught exception ‘Exception’ with message ‘Facebook needs the JSON PHP extension.’ in /var/www/stefanvukovic.me/public_html/facebooksdk/src/base_facebook.php:22 Stack trace: #0 /var/www/stefanvukovic.me/public_html/facebooksdk/src/facebook.php(18): require_once() #1 /var/www/stefanvukovic.me/public_html/facebooksdk/fblogin.php(5): include(‘/var/www/stefan…’) #2 {main} thrown in /var/www/stefanvukovic.me/public_html/facebooksdk/src/base_facebook.php on line 22” <br> <br> <br>

I would try enabling the extension in your php5 config file. It might vary depending on your Linux distro and version of php you’re using. Google will surely help you.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.