EllisLab text mark
Advanced Search
9 of 11
9
   
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: 12 September 2012 10:45 PM   [ Ignore ]   [ # 121 ]   [ Rating: 0 ]
Joined: 2011-05-17
23 posts

Has anyone else had a problem with FBi not working with IE 10?  It seems to work fine in Firefox but the call to $this->fb_ignited->fb_get_me(true) redirects infinitely

 
Posted: 13 September 2012 11:21 AM   [ Ignore ]   [ # 122 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

Might be that Facebook still has a bug, I encountered that a while back and it’s a running bug with their API. Sometimes IE works, sometimes not.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 15 September 2012 07:43 PM   [ Ignore ]   [ # 123 ]   [ Rating: 0 ]
Joined: 2011-05-17
23 posts

Odd.  I thought the problem had magically fixed itself until I started checking the FBi use on other machines and found that I had that problem consistently on machines that weren’t running my server (yes, I develop on the server. I don’t have a plethora of machines) until I added this as part of the constructor for the class calling FBi

      parse_str($_SERVER[‘QUERY_STRING’],$getArr);
      $_REQUEST[‘state’]=$getArr[‘state’];
      $_REQUEST[‘code’]=$getArr[‘code’];

Now it works on remote machines.

 
Posted: 22 September 2012 12:49 PM   [ Ignore ]   [ # 124 ]   [ Rating: 0 ]
Joined: 2012-09-17
5 posts

I’m having a problems with my fb_ignited app that I hope someone can suggest some things for me to try.
I can’t get the requests dialog to work, Ive tried all kinds of permutations and have ended up at head against wall stage. I’ve noted in the documentation that it mentions fb_request_dialog($display, $name) but I can’t figure out how to implement. Any help will be appreciated.
Thanks
Martin

 
Posted: 22 September 2012 03:34 PM   [ Ignore ]   [ # 125 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts
tacowaco - 22 September 2012 12:49 PM

I’m having a problems with my fb_ignited app that I hope someone can suggest some things for me to try.
I can’t get the requests dialog to work, Ive tried all kinds of permutations and have ended up at head against wall stage. I’ve noted in the documentation that it mentions fb_request_dialog($display, $name) but I can’t figure out how to implement. Any help will be appreciated.
Thanks
Martin

Have you tried

echo fb_request_dialog($display$name); 

?

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 22 September 2012 04:28 PM   [ Ignore ]   [ # 126 ]   [ Rating: 0 ]
Joined: 2012-09-17
5 posts

alas that come back with a fatal error,
Fatal error: Call to undefined function fb_request_dialog()
if I try

$display "text";
$name "button";
echo 
$this->fb_ignited->fb_request_dialog($display$name); 

It comes back with no error but nothing shows on the page. Not sure what values should be given to $display and $name?

 
Posted: 22 September 2012 07:49 PM   [ Ignore ]   [ # 127 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts
public function fb_request_dialog($display$name{

  
/**
   * This function will generate a request dialog
   */
  
$send "[removed]
   FB.init({appId: '" 
$this->CI->facebook->getAppId() . "', frictionlessRequests: true,});

   function sendrequest() {
    FB.ui({
    method: 'apprequests',
    access_token: '" 
$this->CI->facebook->getAccessToken() . "',
    display: '" 
$display "',
     message: '" 
$name "'

    }, requestCallback);
   }

   function requestCallback(response) {

   }

   sendrequest();
  [removed]"
;

  return 
$send;
 

Cross reference that with the Facebook JavaScript SDK, I believe you need to include a message not a type from looks of it.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 23 September 2012 07:52 AM   [ Ignore ]   [ # 128 ]   [ Rating: 0 ]
Joined: 2012-09-17
5 posts

That sorted it!
Many thanks for your help.
Kind regards
Martin

 
Posted: 08 October 2012 05:27 PM   [ Ignore ]   [ # 129 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

Release v1.1.1

- Upgraded the CodeIgniter to v2.1.3
- Updated the Facebook PHP SDK to v3.2.0
- Added the script redirect to fb_logout_url() method.
- Clarified the fb_request_dialog() by change the parameter $name to $message.
- Cleaned up code on several methods, allowing for code to be read easier.

I am keeping an eye for new ideas for features, so if you have one please either submit an issue or fork and pull request the code back to the project! I appreciate all the support that you guys have been giving and I will continue to keep this up to date for you as time goes along.

As always you can download the minimum version at https://github.com/Necromnius/Facebook-Ignited/downloads which includes only the bare minimum files to allow ease of updating your Facebook Ignited installations.

Additionally, if you find any issues with the new version released, please submit an issue on GitHub so that I can resolve it as quickly as possible.

Regards,
Alfonso Martinez aka Necromnius

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 13 October 2012 04:56 AM   [ Ignore ]   [ # 130 ]   [ Rating: 0 ]
Joined: 2012-09-17
5 posts

Dear Alfonso,
Thanks again for your work on this project, you’re a star!. Are there any plans to add a function for using the notifications API

link to fb notification page

or are you aware of a method for implimenting this under the current system?

 
Posted: 13 October 2012 05:34 AM   [ Ignore ]   [ # 131 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts
tacowaco - 13 October 2012 04:56 AM

Dear Alfonso,
Thanks again for your work on this project, you’re a star!. Are there any plans to add a function for using the notifications API

link to fb notification page

or are you aware of a method for implimenting this under the current system?

Martin,
I will definitely be including that in my next version. I have been pretty busy so I haven’t had much time to look at all the new features Facebook has been adding. Thank you for the suggestion and I look forward to more.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 17 October 2012 11:06 AM   [ Ignore ]   [ # 132 ]   [ Rating: 0 ]
Joined: 2011-05-07
1 posts

if you want to use notifications with fb ignited then add the following to your controller, make sure you change your app name:

function notification($message){
  $user_id 
$this->fb_ignited->getUser();
  
$token_url =    "https://graph.facebook.com/oauth/access_token?" .
                  
"client_id=" $this->fb_app['fb_appid'.
                  
"&client;_secret=" $this->fb_app['fb_secret'.
                  
"&grant_type=client_credentials";
  
$app_token file_get_contents($token_url);
  
$app_token str_replace("access_token="""$app_token);
  
$data = array(
      
'href'=> 'https://apps.facebook.com/your-app-name/',
      
'access_token'=> $app_token,
      
'template'=> $message
  
);
  
$sendnotification $this->fb_ignited->api('/'.$user_id.'/notifications''post'$data);
 

I hope this helps.

Dee smile

 
Posted: 17 October 2012 11:31 AM   [ Ignore ]   [ # 133 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts
damianMcCann - 17 October 2012 11:06 AM

if you want to use notifications with fb ignited then add the following to your controller, make sure you change your app name:

// Above Code 

I hope this helps.

Dee smile

Actually I modified it to fit in with FBI smile Thanks! Here is the following result that I will be including in the next push:

public function fb_notification($message,$user_id NULL{
 
if ($user_id === NULL{
  $user_id 
$this->facebook->getUser();
 
}
 $data 
= array(
  
'href'=> $this->globals['fb_canvas'],
  
'access_token'=> $this->facebook->getAccessToken(),
  
'template'=> $message
 
);
 
$send_result $this->facebook->api("/$user_id/notifications"'post'$data);
 return 
$send_result;
 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 22 October 2012 12:42 AM   [ Ignore ]   [ # 134 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

Release v1.1.2

- Adding more defined visibility to all methods, preventing users from accessing the $this->globals variable.
- Adding support for file uploads via Facebook Ignited in the fb_config.php
- Added a new method fb_notification() to handle Facebook notifications.
- Added a fix for the constant redirect issue for some users not enabling query strings.

Please keep in mind I am adding the ‘fb_uploads’ option to the config file for a future update that I am looking into at this time. If you have any suggestions and/or comments feel free to post them here and as always I am looking for fresh material for the plugin.

Another thing to note, if you use stackoverflow.com I have been starting to answer questions on there as well. Please feel free to tag it as facebook-ignited if you are able to create a tag, so that I can easily find the questions pertaining to this project.

Thanks!

Alfonso Martinez

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 05 November 2012 09:50 AM   [ Ignore ]   [ # 135 ]   [ Rating: 0 ]
Avatar
Joined: 2009-10-10
20 posts

hi necomnius,

I use the librarie for an App, but I get bugs and errors all the time and its stressing me. After a while the access token seems to expire for example:

API Error Code: 102
API Error Description: Session key invalid or no longer valid

and the new update also contains bugs, this here throws errors:

$_REQUEST['state'$fb_query_strings['state'];
$_REQUEST['code'$fb_query_strings['code']

its says those variables are not set…
my temporary fix is:

if(isset($fb_query_strings['state']) ){
   $_REQUEST[
'state'$fb_query_strings['state'];
  
}else{
   $_REQUEST[
'state''';
  
}
  
if(isset($fb_query_strings['code']) ){
   $_REQUEST[
'code'$fb_query_strings['code']
  
}else{
   $_REQUEST[
'code''';
  

please test everything thoroughly

 
9 of 11
9