EllisLab text mark
Advanced Search
10 of 12
10
   
Poll
Should I make the repository Spark friendly?
Yes 6
No 2
Branch off and create a "full" branch. 3
Total Votes: 11
You must be a logged-in member to vote
Facebook Ignited
Posted: 14 November 2012 10:40 PM   [ Ignore ]   [ # 141 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
79 posts

Thanks, it comes in waves. Right now I am working on my own facebook app so I have been a bit distracted from this until people post or I need a feature lol.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 15 November 2012 06:45 AM   [ Ignore ]   [ # 142 ]   [ Rating: 0 ]
Joined: 2012-11-15
1 posts

It seems fb_check_permissions() always returning TRUE.

$datas $this->CI->facebook->api($FQL); 

is returning an array so:

if($datas

always return TRUE

I add this to remove authenticated permissions (1) and return unauthenticated permissions (0) in a string:

$perm implode(','array_keysarray_diff($datas[0], array(1) ) ) ); 

And change if ($datas) statement to: if (!$perm)

fb_check_permissions():

public function fb_check_permissions($perm$extend false{
  
/**
   * Checks if the permission type enquired about is authenticated and accepted.
   * 
   * @param $perm - this is the permission that will be checked.
   * @param $extend - this will tell the function whether or not to extend the users permissions.
   */
  
$FQL = array("method" => "fql.query""query" => "SELECT {$perm} FROM permissions WHERE uid = me()");
  
$datas $this->CI->facebook->api($FQL);
  
  
$perm implode(','array_keysarray_diff($datas[0], array(1) ) ) );
  
  if (!
$perm{
   
return true;
  
else {
   
if ($extend === false{
    
return false;
   
else {
    
echo $this->fb_login_url(true$perm);
    exit;
   
}
  }
 } 

 

 
Posted: 17 November 2012 12:47 PM   [ Ignore ]   [ # 143 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
79 posts

Thanks, I will be including that in v1.2.2 smile

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 07 December 2012 11:35 AM   [ Ignore ]   [ # 144 ]   [ Rating: 0 ]
Joined: 2010-07-21
6 posts

Hello Necrominus (and the others) and a huge thanks to you : your job is awesome !

but… unfortunately, there is a but.

I’ve set my environment and everything is working fine until I wanted to put new methods in my controller.
The idea was to put the “fb_get_me” in the __construct method to check if the user is ok for each of the called methods.

So I set up this :

class Dashboard extends CI_Controller {
     
public $userId    null;
 
     function 
__construct()
     
{
          parent
::__construct(); 

          
// The fb_ignited library is already auto-loaded so call the user and app.
          
$this->fb_me $this->fb_ignited->fb_get_me(true); 
          
$this->fb_app $this->fb_ignited->fb_get_app();

          
$this->userId $this->fb_me['id'];
     
}

And everything is working fine.

Then I created other methods (shortened for clarity):

public function index()
{
     
//the code you provide in the example PLUS a link to "dashboard/listAll"
}
public function listAll()
{
     $data[
'pictures'$this->M_picture->getPictures(); // Retrieve pictures list
     
$this->load->view('show_pictures'$data);
}

public function vote($for)
{
     
//do stuff
     
$this->session->set_flashdata('ok'"Hey hey, vote okay !");
     
redirect('dashboard');

Within the “show_pictures” view there is a link targetting

<?php echo anchor('dashboard/vote/10''Vote for image'); ?> 

So I come to my application, click on “dashboard/listAll”, see all the images and want to vote for one.
So I click “dashboard/vote/10” and this method is never called :(

I made some tests and noticed that the

$this->fb_me $this->fb_ignited->fb_get_me(true); 

was the “problem” here.

Could you please tell me what am I doing wrong ?

Thank you so much in advance !

 
Posted: 08 December 2012 07:41 PM   [ Ignore ]   [ # 145 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
79 posts

Hi magikman,
I just wanted to let you know I have been looking into this for you and will include a fix in the v1.2.2 release with the new Facebook PHP SDK updates and posting to activity feed. Work has been pretty busy so I haven’t had a chance to update you on my progress. I appreciate the information ypu provided and if you would be able to report this info on GitHub issues it will allow me to keep track more easily.

If you can give me any more information regard the settings in Facebook dev panel (no app secret values values please) and also please check authorized status of the app in your privacy settings and report those to me I would appreciate any information to help me track this down for you!

Regards,
Rev. Alfonso E Martinez, III
(aka Necromnius)

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 10 December 2012 06:34 AM   [ Ignore ]   [ # 146 ]   [ Rating: 0 ]
Joined: 2010-07-21
6 posts

Hello and thank you so much for your quick answer.
I’m currently abroad and away from my computer and source code. I promise to send it to you with complete info and testability on a small sample project by tomorrow evening.

Anyway, when do you think the 1.2.2 Will be ready with the patch (of course my project is quite needing that fix very fast, as always… And I apologize for asking you that)

Thank you and again thank you for this amazing lib !

 
Posted: 10 December 2012 11:52 AM   [ Ignore ]   [ # 147 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
79 posts

Well, first off I need to finish up the activity posting feature, and then I would have to see what the issue is that is causing your problem. After that I will release it as quickly as possible. It will just take some messing around with the app and debugging it a bit to see why it is doing that, whether it is the settings on facebook or if it is the plugin itself.

I would also suggest that you download the latest Facebook PHP SDK which is now at v3.2.1 you can just replace the files easily by downloading them from Facebook’s GitHub, tell me if that resolves any issues and if not we will go in and take a look at your app.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 13 December 2012 04:24 AM   [ Ignore ]   [ # 148 ]   [ Rating: 0 ]
Joined: 2010-07-21
6 posts

Hello Necromnius,

I’ve updated the new SDK, re-downloaded the full-install branch and made few more tests.
It seems (I cross my fingers) to be working fine even if I don’t know what broke my app.

If you still want it to have my code ton analyze that, feel free to ask and I’ll provide it to you.

I would like to say you a huge THANK YOU for your work and this amazing wrapper and wish you the best for the upcoming !

See you !

 
Posted: 16 December 2012 03:23 AM   [ Ignore ]   [ # 149 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-11
758 posts

hi i want to build a facebook app and i am using facebook ignited but as per facebook police you have to provide Secure Canvas URL means i have to buy SSL certificate, its just a simple app how to solve this problem

 Signature 

CI,JQuery,Google Maps | widget with CI loader | Thumbnail, Image Resize, Image Crop Helper | CI shortcode

 
Posted: 28 January 2013 12:52 PM   [ Ignore ]   [ # 150 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
79 posts

Release v1.2.2

- Updated the Facebook PHP SDK to v3.2.1
- Fixed an issue where the fb_check_permissions() method was always returning true, thanks to clearright via forums.
- Fixed an issue where the fb_create_event() was not using the correct array to handle events.
- fb_login_url() and fb_check_permissions() methods now use arrays to receive parameters so that we can expand their functionality. Check the method docs on GitHub wiki for more information regarding these changes.

I apologize for the late release! I have been quite busy over the holidays and I am sure you all can understand. However with my birthday being in January and me starting up with a new company I was doing a lot of work to get started in the new years. I will also be linking a JIRA installation soon once I finish writing the software needed to install the required software for it’s use on a cPanel server.

Happy New Years and may your code be awesome! raspberry

Regards,
Necromnius

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 29 January 2013 04:04 AM   [ Ignore ]   [ # 151 ]   [ Rating: 0 ]
Avatar
Joined: 2013-01-28
4 posts

thank Necromnius! i’m looking something like that. Sr my english slightly worse :D

 
Posted: 29 January 2013 11:56 AM   [ Ignore ]   [ # 152 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
79 posts

You’re welcome! I hope it works exactly for what you need it to do. smile

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 09 February 2013 04:06 AM   [ Ignore ]   [ # 153 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
79 posts

It’s been a while since I have done any major features for this, so I just wanted to let you all know that I am going to be reviewing the the current code and optimizing it etc and bring it up to current with the Facebook docs. If it’s still pretty much current it won’t be a hard or lengthy process, however if there have been many changes since then I will be adding them as soon as I can.

Now that Facebook has their PHP SDK Docs online (they didn’t have them when I started so all my work was done hard way learning from trial and error) I am able to compare what I have and see if I am up to spec with what they have.

Addendum: I will also be adding an exception class to the project so that we can now throw and catch exceptions thrown from errors in the Core Facebook Class. Additionally I am adding a new configuration in the config file that you will see `$config[‘fb_logexcept’]` which will now determine if the errors going to the new FBIgnitedException class get sent to the actual PHP error log.

Thank you for you support and I hope that you all have a wonderful Valentines if I don’t hear from you all!

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 15 February 2013 06:44 AM   [ Ignore ]   [ # 154 ]   [ Rating: 0 ]
Joined: 2013-02-15
2 posts

Hey Necromnius, Facebook-Ignited is great, and thanks for making it!

I’m seeing an issue that I’m not sure I can work around or not. I have two versions of the same app, one is a connect app and the other is an iframe version on Facebook. If I use the same app ID etc. for both I get an error going between the two as a user: Fatal error: Wrong parameters for Exception([string $exception [, long $code ]]) in /home/*****/public_html/*****/application/libraries/FBIgnitedException.php on line 9

I’m not sure if I have isolated the real problem or not. Is it possible have two apps, one connect and the other an iframe app on facebook with facebook-ignited? The two applications stand alone as in they are both in different directories on our server.

I hope that makes sense! Thanks again.

 
Posted: 15 February 2013 07:04 AM   [ Ignore ]   [ # 155 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
79 posts

Thanks for reporting this I will work on fixing that shortly.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
10 of 12
10