CodeIgniter Forums
How to use facebook sdk4? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How to use facebook sdk4? (/showthread.php?tid=61365)



How to use facebook sdk4? - agriz - 04-10-2015

Hi

I don't know how to use it?
Can i use facebook sdk4 to create apps with codeigniter?

Please tell how to include facebook ?


RE: How to use facebook sdk4? - silentium - 04-12-2015

You can use the Facebook SDK with CodeIgniter. I would recommend installing the SDK using composer and then build a library as a wrapper of the SDK to get easy integration with CodeIgniter.

If you don't want to build that library your self I have made one that is free to use for anyone. You can find it here https://github.com/darkwhispering/facebook-sdk-v4-codeigniter/

Use it as is, or use it as a reference on how to included the Facebook SDK with CodeIgniter. Either way, I'm happy that my code helped in any way.


RE: How to use facebook sdk4? - agriz - 04-14-2015

Thanks for your reply.
Can you tell me how to compile myself?

Facebook has given the composer.json file. I have already installed the composer.
I will try myself in my localhost host. If it is very complicated, i will go ahead and use your code.
I think learning this will help me to include other libraries in future.

Please link if you have written any tutorial for this.

Thanks for your help


RE: How to use facebook sdk4? - silentium - 04-14-2015

I have not, but here is a good guide that should put you on the right track on implementing your own solution http://www.benmarshall.me/facebook-sdk-php-v4-codeigniter/

Even if you don't use my code, use it as a reference on how to build your own.


RE: How to use facebook sdk4? - alkarim - 04-16-2015

better download the SDK from the facebook itself.


RE: How to use facebook sdk4? - silentium - 04-16-2015

(04-16-2015, 02:22 AM)alkarim Wrote: better download the SDK from the facebook itself.

You do when using my library as it requires you to install the Facebook SDK using Composer.


RE: How to use facebook sdk4? - agriz - 04-20-2015

Do we need to rewrite all the facebook methods in our facebook library?