![]() |
Problem posting an update to Facebook - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem posting an update to Facebook (/showthread.php?tid=33457) |
Problem posting an update to Facebook - El Forum - 08-26-2010 [eluser]Gram3000[/eluser] Hi, I've been using Elliot Haughin's Facebook connect library and I have it working retrieving information from Facebook. One thing I can't do though it post updates to Facebook, is this possible with this Library? I've tried: $this->facebook_connect->client->stream_publish($message); But this gives me the error: Call to undefined method Facebook_connect: ![]() Can anyone help? I've been looking through this forum and Google all morning with no luck. Thanks in advance. Problem posting an update to Facebook - El Forum - 08-26-2010 [eluser]tkyy[/eluser] you are best off to use the graph api, which is in a rest-ful format and accepts a simple post command with curl. you can run and tell THAT, homeboy! Problem posting an update to Facebook - El Forum - 08-27-2010 [eluser]Gram3000[/eluser] Cool, Thank you. I'll give it a go. Do you recommend any Libraries for it, or use it directly with curl? Problem posting an update to Facebook - El Forum - 08-27-2010 [eluser]tkyy[/eluser] [quote author="Gram3000" date="1282922159"]Cool, Thank you. I'll give it a go. Do you recommend any Libraries for it, or use it directly with curl?[/quote] directly with curl. i recommend a curl class, which you could store seperate to ci or make into a library since that will get annoying writing all the curlopts out every second. here is one that i wrote awhile ago- i usually use this one if i am not using a framework since i have built an entire framework around "web automation" and i have on big controller that i use in an unorthodox method to make curl calls and store data and etc. anyway i don't want to get offtopic here you go. Code: <?php |