problem about facebook-apps-Collection of common programming errors
Ashique Majeed
php facebook facebook-graph-api facebook-php-sdk facebook-apps
I just tried to develop a Facebook application using Facebook PHP SDK. The example code given in Facebook developer site is as below..<?php// Remember to copy files from the SDK’s src/ directory to a// directory in your application on the server, such as php-sdk/require_once(‘php-sdk/facebook.php’);$config = array(‘appId’ => ‘YOUR_APP_ID’,’secret’ => ‘YOUR_APP_SECRET’,’fileUpload’ => true,’allowSignedRequest’ => false // optional but should be set to false for non-canvas apps);$fa
mykisscool
facebook facebook-graph-api facebook-apps
I’m in the process of developing a Contest and Promotion-related Facebook app and my intent is to to create a tab on my company’s page that will provide access to the app.Once their, users can nominate local companies for awards. Later on; once the nominations are in, users can vote for a winner.I’ve integrated Open Graph into my app so that I can take advantage of Object Types (Organization), Action Types (Nominate, Vote For), and Aggregations (Nominations). My main objective is to then trans
Aleksejs Mjaliks
facebook-apps facebook-app-center
The native iOS app is listed on Facebook App Center. But there is issue with “Send to Mobile” action, it fails with error:API Error Code: 191API Error Description: The specified URL is not owned by the applicationError Message: redirect_uri is not allowed by the application for OAuth.Because the app is configured as a native iOS app, there is no any domains and redirect URI entered.P.S. I know there is plenty of questions about API Error Code 191. But at the moment none of them was helpful, thus
Gal V
facebook-opengraph facebook-apps facebook-test-users
I’m developing a facebook canvas application (iframe) and I’m using the Open Graph API to post user actions.When I submit my action to facebook’s team approval, they reply with:We are unable to test this action due to an error within your app.Please make sure that your action functions correctly by testing withthe Auth Dialog Preview User and re-submit.Here’s the thing. I realised that only when I test the application with an app generated test user, I get an error when trying to post open graph
rink.attendant.6
facebook facebook-graph-api facebook-like facebook-apps facebook-timeline
I just registered a Facebook app so I could let people post articles to their newsfeed the way gizmodo does it (http://gizmodo.com/5969817/the-hobbit-an-unexpected-masterclass-in-why-48-fps-fails).However, the post is coming up with permissions as “only me”. How do I change this? I’ve already changed the default permissions in the app to “friends”.Steps to reproduce:Go to http://www.senseculture.com/blog/posts/75_adventure-time.php Click Like Enter some text and click Post to Facebook See it in
Raphael_
php laravel facebook-apps laravel-3
I’m getting this error:call_user_func_array() expects parameter 1 to be a valid callback, class ‘Symfony\Component\HttpFoundation\LaravelRequest’ does not have a method ‘url’The code I’m using is:routes.php:<?phpRoute::post(”, ‘app@check’); Route::get(”, ‘app@check’); Route::post(‘game’, ‘app@game’); Route::get(‘game’, ‘app@game’); Route::get(‘terminos’, ‘app@terminos’); Route::post(‘save’, ‘scores@savescore’); Route::get(‘scores’, ‘scores@scorelist’); Route::get(‘scores2468’, ‘scores@shows
Ashwin N Bhanushali
facebook exception facebook-c#-sdk facebook-apps targetinvocationexception
I am using a Facebook app to show facebook statuses and images from a Facebook page to my windows 8 application but I am getting a Target Invocation Exception each time and although I have a try catch, I do not know how to get rid of this exception. The inner exception is a Facebook Wrap Exception Wrapper. Any ideas? Here is my call stack:System.Reflection.TargetInvocationException was unhandled HResult=-2146232828 Message=An exception occurred during the operation, making the result invalid. C
Sneha Inguva
facebook facebook-php-sdk facebook-apps blacklist
I am creating a very basic app on Facebook that is still in development. I am hosting it on 1and1.com and using the PHP SDK for login. Though it was functioning correctly, I suddenly woke up yesterday morning and found myself facing this error: Fatal error: Uncaught OAuthException: This IP can’t make requests for that application.I’ve looked through similar threads and tried to do the following things: – Added my app url to the whitelist (upon suggestion I do so.) When I realized it didn’t help
digster
facebook facebook-graph-api facebook-php-sdk facebook-apps facebook-authentication
I am using the following code to get permissions for my app(the code is in index.php)- <?phprequire_once “sdk/facebook.php”;$fbconfig[‘appid’] = “333446170045623”;$fbconfig[‘secret’] = “9ea7b92bc7eac852a3900e1d7931c34d”;$facebook = new Facebook(array(‘appId’ => $fbconfig[‘appid’],’secret’ => $fbconfig[‘secret’],’cookie’ => true,));$user = $facebook->getUser();if (!$user) { /* If user not found, authenticate */ $loginUrl = $facebook->getLoginUrl(array(‘scope’ => ‘publish_stre
Alex Naspo
php facebook-graph-api facebook-php-sdk facebook-apps
I am trying to tag my facebook-app user in the photo created by the app. but its giving me error.$args = array(‘message’ => $fbme[‘name’].’ will have a love marriage.’,’image’ => ‘@’ . realpath(‘./images/wall-e-and-eva1.jpg’),’tags’ => array(array(‘tag_uid’=> $uid,’x’ => 0,’y’ => 0,)) );$data = $facebook->api(‘/’.$uid.’/photos’, ‘post’, $args);where $uid =$facebook->getUser();I am getting the below error. I dont understand how the photo is created and uploa
jszumski
ios facebook sdk facebook-apps
When trying to integrate the Facebook iOS SDK I encountered this error:Terminating app due to uncaught exception’com.facebook.sdk:InvalidOperationException’, reason: ‘FBSession: NoAppID provided; either pass an AppID to init, or add a string valuedkey with the appropriate id named FacebookAppID to the bundle*.plist’`However, I did put FacebookAppID and a FB-specific URL scheme into Info.plist:<plist version=”1.0″> <dict> <key>CFBundleURLTypes</key> <array><dict&g
Gabriel Jacinto
facebook login facebook-php-sdk facebook-apps
When I log in with my facebook account in my website, sucess! But when log in with facebook account of my friend, give this error: Uncaught OAuthException: (#200) User is not in an allowed country for this app’s music functionality, nor a tester or developer of the app. It’s not just him. The other people also. In the settings of the app I put as “people without location can use” and “people from any location can use”, but continues giving the error.
Altin Elezaj
facebook facebook-apps
I have a FB app script and im trying to make it work but I get this error:Fatal error: Uncaught Exception: 601: Parser error: unexpected ‘)’ at position 37. thrown in /home/altin/public_html/apps/empower/empowermix/base_facebook.php on line 658Here is the part of the script where I get the error:$friendsLists = $facebook->api(‘/me/friends’);foreach ($friendsLists as $friends) {$ile=count($friends);}$zapytanie=” (uid=”.$friends[0][‘id’].”) “;for($i=1;$i<$ile;$i++){$zapytanie.=” or (uid=”.$f
Christian Rankin
php facebook-apps
I just built an application with the facebook graph API, and it’s been running smoothly till now.. Whenever I go to my website I’m now getting the errorUncaught FacebookApiException: Unsupported operation thrown on line 1254Here is line 1254$e = new FacebookApiException($result);When I ran a debug, this is what I gotOpen Graph Warnings That Should Be FixedInferred Property: The ‘og:url’ property should be explicitly provided, even if a value can be inferred from other tags.Inferred Property: T
guybennet
php facebook-php-sdk facebook-apps
my aplication is work fine but there is one problem. when someone try to use my application he/she gets this error. other problem is after allowing the app it doesnt redirect anywhere, you have to resresf page. after allow and refreshing you can use app.my allow code: fb:login-button perms=”email,user_birthday,status_update,publish_stream,offline_access”>you can check my app page: https://apps.facebook.com/denemeapicik/error:Uncaught OAuthException: Error validating access token: User 1000abc ha
Anupam Jain
python facebook-apps
My FB app code had broken after a Facebook October 2012 Breaking Change and it got fixed by following a suggestion here: Picture property format using run with friends fb appBut interestingly, after fixing it, I am facing another issue in the same code (which I dont think existed earlier) I have searched through the Breaking Changes but this issue doesnt seem to be discussed there as well. Its complaining of user_id not being an attribute of self.user in this line: u’userIdOnServer’: self.user.u
user958414
facebook email facebook-javascript-sdk facebook-apps
Hi,I am using JavaScript API to create my app for Facebook.The problem is, it’s returning email = undefined. I dont know why? And if I use Facebook login/logout button on my app then the alert shows correct email id of the user but I don’t want to do that. What am I missing? Here is my code: <p><fb:login-button autologoutlink=”true” perms=”user_about_me,email”></fb:login-button></p><script> window.fbAsyncInit = function () { FB.init({ appId: ‘250180631699888’, statu
Jason
facebook facebook-apps
This has been driving me completely nuts for months now. I have created an app for the sole purpose of displaying content customized for facebook from my company’s website.We want something like this: http://www.facebook.com/FarmersInsurance?sk=app_7146470109 But end up with this: http://www.facebook.com/DeltaFlexTravelers?sk=app_110411285713674I can’t get rid of the damn scroll bars! I’ve done everything that other answers to this kind of question suggest to no avail. I am explicitly setting th
Mattyx
facebook-apps facebook-page
Several month ago, before FB restricting the ability of a Page Account to create apps, I have created an application and linked to the page.Now I cannot access anymore to the developers page with this account. I had to create a new app with my personal account, but I can’t find a way to remove or unlink the old app from the page.I cannot create a new page, as a result of nearly one year of activity on the current page, and trying to link the new app to the old page I get an undefined error.We ar
mianahmad
php facebook facebook-apps facebook-app-requests php-gettext
when user allow my app i receive this type of success url:http://localhost/fbapp/app.php#access_token=AAAAALY8OpPABAM67auStdfgdfOdfgdfgdenqEt9QZCGD2a1h3iWFrhmNWqOf8l4a9RQ8tAJCM9y5QbYpsP6sT1g0ZCXDhtZCECZApGb&expires_in=6604i am trying $_GET[‘access_token’] to save access token, but it’s not working,i want to know that how to get access token from this url..
Joshc
facebook-javascript-sdk facebook-php-sdk facebook-apps
I’m creating a facebook tab page and I would like to use fan gating.I’ve used fan gating before and have had no problems, but this was like 4 months ago. And I’m using the same PHP but this time I’m getting problems.See below the basic code for my app and the fan gate conditional statement…But I get this error for some reason…Notice: Undefined index: signed_request in /home/sites/example.co.uk/www/competition/index.php on line 126 Notice: Undefined offset: 1 in /home/sites/example.co.uk/www/
user1147995
facebook codeigniter facebook-apps facebook-authentication
I am trying to use facebook registration plugin with following code <?phpdefine(‘FACEBOOK_APP_ID’, ‘your_app_id’);define(‘FACEBOOK_SECRET’, ‘your_app_secret’);function parse_signed_request($signed_request, $secret) {list($encoded_sig, $payload) = explode(‘.’, $signed_request, 2); // decode the data$sig = base64_url_decode($encoded_sig);$data = json_decode(base64_url_decode($payload), true);if (strtoupper($data[‘algorithm’]) !== ‘HMAC-SHA256’) {error_log(‘Unknown algorithm. Expected HMAC-SHA25
Ren83
facebook facebook-graph-api firefox facebook-apps
Im using FB.api query to fetch a user friends list (that already using my app). This worked till today, now it continue to work in every browser but Firefox, in Firefox the response return “Unknown Error”.FB.api({method: ‘fql.query’,query: ‘SELECT uid,name FROM user WHERE has_added_app=1 AND uid IN (SELECT uid2 FROM friend WHERE uid1 = ‘ + user_facebook_id+ ‘)’}, function (response) {}I have noticed that facebook perform this http call:https://www.facebook.com/dialog/oauth?client_id=…..And its
user984621
facebook ssl facebook-apps
I am working on my first app for Facebook and facing (probably) with the SSL problem. If I am testing the app, so it’s working well. But then I wanted to test the app by my friend – so I assigned him the role “Tester”, he accepted it and I sent him the link to the app.If he opened the app, he got the error The website is not available – Error 501 (net::ERR_INSECURE_RESPONSE): Unknown errorI started google it and it looks that the cause is the missing SSL certificate on my hosting, where the app
hderanga
facebook facebook-graph-api facebook-php-sdk facebook-apps
I was struggling to find a way to do this. may be this is not possible but I did not found any resource saying this can’t do. so I think to post on here.I am developing a Facebook application and It has photo uploading function. what I was trying to do is, when the user upload an image then image will automatically add to my fan page.so I go through like this. but it is only possible for admin. (I hard code admin user id)$fanpageId = 562**23; //My Facebook fanpage ID $adminFbId = 100***12; //
Marty Beckers
facebook fql facebook-apps facebook-comments
We have a Facebook app that uses the FB comments social plugin. We’re trying to automatically pull the total number of comments that have been posted using that app.We’ve tried using this query:SELECT count FROM comments_info WHERE app_id = 210218945658186However, this returns the following information:{“error”: {“message”: “An unexpected error has occurred. Please retry your request later.”,”type”: “OAuthException”,”code”: 2} }If we query fields other than the count field, the result is properl
Emil
php facebook facebook-graph-api facebook-apps
A few days ago my app was working fine. Now I’m getting this error after the user tries to authenticate it:Fatal error: Uncaught OAuthException: (#1) An unknown error occurred thrown in /home/…/public_html/…./src/base_facebook.php on line 1024all of a sudden i am seeing this and traffic is falling a lot because people can’t use the app.
Web site is in building