EllisLab text mark
Advanced Search
2 of 11
2
   
Poll
Should I make the repository Spark friendly?
Yes 5
No 2
Branch off and create a "full" branch. 3
Total Votes: 10
You must be a logged-in member to vote
Facebook Ignited
Posted: 10 June 2011 02:23 PM   [ Ignore ]   [ # 21 ]   [ Rating: 0 ]
Joined: 2011-05-20
3 posts

Hi deth4uall!
I saw your work, I think it is very useful! Just yesterday I coded a simple FB-SDK Cache Wrapper. It’s very simple, when it does a request to a facebook servers, the result has save using a Codeigniter Cache Driver.
This make your application very fast! I think which is a usefull feature for your project!

You can download my FB-SKD wrapper from here: http://www.edelprino.it/codeigniter-facebook-cache-library/
(It is for now a beta version)
smile

 Signature 

My Blog : http://www.edelprino.it/

 
Posted: 10 June 2011 02:33 PM   [ Ignore ]   [ # 22 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts
Ektor - 10 June 2011 06:23 PM

Hi deth4uall!
I saw your work, I think it is very useful! Just yesterday I coded a simple FB-SDK Cache Wrapper. It’s very simple, when it does a request to a facebook servers, the result has save using a Codeigniter Cache Driver.
This make your application very fast! I think which is a usefull feature for your project!

You can download my FB-SKD wrapper from here: http://www.edelprino.it/codeigniter-facebook-cache-library/
(It is for now a beta version)
smile

Thanks for presenting that to me. I however see a few things with it that may be somewhat of an issue. ->getSession() function no longer exists in the 3.0.0+ SDK. Also getUser() returns the ID number of the user, not any of the details regarding the user. Other than that it looks good and the caching could definitely be a plus to my library if I could have your permission to use the idea?

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 10 June 2011 02:52 PM   [ Ignore ]   [ # 23 ]   [ Rating: 0 ]
Joined: 2011-05-20
3 posts
deth4uall - 10 June 2011 06:33 PM

Thanks for presenting that to me. I however see a few things with it that may be somewhat of an issue. ->getSession() function no longer exists in the 3.0.0+ SDK. Also getUser() returns the ID number of the user, not any of the details regarding the user. Other than that it looks good and the caching could definitely be a plus to my library if I could have your permission to use the idea?

I still don’t see a new version of facebook SDK. How i said my wrapper is still a beta version, but thank you very much for your suggestion! wink

Certainly You can use the idea! But if you become famous for this project remember me! raspberry

 Signature 

My Blog : http://www.edelprino.it/

 
Posted: 10 June 2011 02:55 PM   [ Ignore ]   [ # 24 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts
Ektor - 10 June 2011 06:52 PM
deth4uall - 10 June 2011 06:33 PM

Thanks for presenting that to me. I however see a few things with it that may be somewhat of an issue. ->getSession() function no longer exists in the 3.0.0+ SDK. Also getUser() returns the ID number of the user, not any of the details regarding the user. Other than that it looks good and the caching could definitely be a plus to my library if I could have your permission to use the idea?

I still don’t see a new version of facebook SDK. How i said my wrapper is still a beta version, but thank you very much for your suggestion! wink

Certainly You can use the idea! But if you become famous for this project remember me! raspberry

https://github.com/facebook/php-sdk/ Go there and click downloads, they have v3.0.1 ready. And yes I will put you in credits of README if I use it. raspberry If you have any other ideas please let me know.

EDIT: I ended up not using the caching technique because I did not have enough functions that would be able to use the caching like i wanted it to. Thanks though man.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 06 July 2011 05:55 PM   [ Ignore ]   [ # 25 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

Release v1.0.5

- Added extending permissions ability to fb_check_permission() function.
- Added fb_create_event() function which allows you to create an event.
- Added the ability to define scope in fb_login_url().
- Added the support for Facebook Connect to Library while creating a config setting that decides what type to use.
- Added Facebook register plugin support in fb_register_form() function to the Library, parses raw JSON or Array (converts to JSON) and returns an iframe which the system then pulls up the form in. As well as JSON support, the fb_register_form() function can also take html attributes to modify the look of iframe.
- Added fb_feed() function which allows for a non JavaScript method of publishing to a feed as well as deleting posts.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 09 July 2011 12:43 PM   [ Ignore ]   [ # 26 ]   [ Rating: 0 ]
Joined: 2011-07-09
1 posts

Hi deth4uall,

I started using your code just to see how CI could be integrated with FB-SDK and I have to say that so far, so good! Some time ago, I worked with CI+FB but honestly I had tons of problems or errors when I was trying to adapt it with some other code.

Congrats & Thanks!

 
Posted: 09 July 2011 04:38 PM   [ Ignore ]   [ # 27 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

Thanks waalteer for the comments, if you ever find that you need a certain feature be sure to drop it by me.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 21 July 2011 03:39 PM   [ Ignore ]   [ # 28 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 posts

I have installed and have the connection working just fine. I downloaded the ‘min’ version since I have a lot of other code I am integrating with. But maybe I am missing something really obvious. There are many explanations missing such as, how do I do a simple graph call? What exactly is the format? Could you provide some example of calling the FB api? I tried this…

$friends = $this->fb_ignited->fb_accept_requests($this->fb_me[‘id’],‘friends’);

I assumed this would create a graph call like https://graph.facebook.com/uid/friends and return an array. But it returns errors…

A list of example calls would be appreciated.

Thanks for making our lives a little easier!

 
Posted: 21 July 2011 04:01 PM   [ Ignore ]   [ # 29 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 posts

Also, how does function fb_accept_requests($request_ids, $callback = false) even work?

You’ve got two input parameters, but the first one is comma-delimited (according to the explode call later down) and then you use $request as a variable in the graph call but it is never defined???

What am I missing? How can this code even work?

 
Posted: 22 July 2011 08:56 AM   [ Ignore ]   [ # 30 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

https://bitbucket.org/deth4uall/facebook-ignited/wiki/API Here is the API Documentation.
The delimitation is for when facebook throws multiple requestids. They will be separated by commas, so I have made sure to compensate for that.

You can use fb_list_friends($value=“uid”) for getting the list of Users IDs for your friends who are also users of the app.

and then you use $request as a variable in the graph call but it is never defined???

You are have an older version, I fixed that in v1.0.5.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 22 July 2011 09:32 AM   [ Ignore ]   [ # 31 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 posts

Thanks! I think I have everything working now.

 
Posted: 22 July 2011 09:35 AM   [ Ignore ]   [ # 32 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

I am working on the code for v1.0.6, adding some extras and expanding the usability of the functions already stated, for example for fb_get_app() you can now declare which global you want to call, as well as choose if you want your full friends list from fb_list_friends().

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 22 July 2011 09:44 AM   [ Ignore ]   [ # 33 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 posts

That’s great! I was looking for a full-friends list function, then realized that your function actually did what I wanted. smile I was also going to suggest that the fb_set_globals method in fb_ignited be made private. Just for security… smile If you’re interested, my app is called tellsocial. (http://www.tellsocial.net). I can make you a tester if you want to see your code in action!

 
Posted: 22 July 2011 09:45 AM   [ Ignore ]   [ # 34 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

Thanks for the suggestion mate, I will make it a private function.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 22 July 2011 09:49 AM   [ Ignore ]   [ # 35 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 posts

BTW,I have 1.05 and I still have this line…

$ch = curl_init(“https://graph.facebook.com/” . $request . “?access_token=”.$session[‘access_token’].”“);

in fb_ignited.php. Yet $request is not defined.

 
2 of 11
2