[Solved] login with facebook with database

it’s done with this. $_SESSION[‘fb_access_token’] = (string) $accessToken; $fbApp = new Facebook\FacebookApp(‘1014758295283866’, ‘b1a98e587c8bef98dfb273db67214afb’); $request = new Facebook\FacebookRequest($fbApp, $accessToken, ‘GET’, ‘/me’, [‘fields’ => ‘id,name,email’]); try { $response = $fb->getClient()->sendRequest($request); } catch(Facebook\Exceptions\FacebookResponseException $e) { // When Graph returns an error echo ‘Graph returned an error: ‘ . $e->getMessage(); exit; } catch(Facebook\Exceptions\FacebookSDKException $e) { // When validation fails … Read more

[Solved] How to solve this facebook key hash error?

public void generateHashkey(){ try { PackageInfo info = getPackageManager().getPackageInfo(PACKAGE, PackageManager.GET_SIGNATURES); for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance(“SHA”); md.update(signature.toByteArray()); String s = Base64.encodeToString(md.digest(), Base64.NO_WRAP); Log.e(“HASH KEY “, s); } } catch (PackageManager.NameNotFoundException e) { Log.d(“Name not found”, e.getMessage(), e); } catch (NoSuchAlgorithmException e) { Log.d(“Error”, e.getMessage(), e); } } try to generate the … Read more

[Solved] Facebook user ID. Which one?

What you see are the so-called global and app-scoped user_ids. If you’re using v1.0 of the Graph API, the user_ids will be global. If you use v2.0 they will be app-scoped, as in your first example. It’s all in the docs: https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids 1 solved Facebook user ID. Which one?

[Solved] Posting a comment on friend’s Facebook wall with an iOS SDK [closed]

NSString *urlString = [NSString stringWithFormat:@”https://graph.facebook.com/YOUR_FRIEND_FB_ID/photos?access_token=%@“, self.accessToken]; UIImage * pic = [UIImage imageNamed:@”green-background.png”]; NSData *picData = UIImageJPEGRepresentation(pic, 1); NSURL *url = [NSURL URLWithString:urlString]; ASIFormDataRequest *newRequest = [ASIFormDataRequest requestWithURL:url]; [newRequest setPostValue:@”This is Sample Text” forKey:@”message”]; [newRequest setData:picData forKey:@”data”]; [newRequest setPostValue:self.accessToken forKey:@”access_token”]; [newRequest setDelegate:self]; [newRequest setDidFinishSelector:@selector(postToWallFinished:)]; [newRequest startAsynchronous]; solved Posting a comment on friend’s Facebook wall with an … Read more

[Solved] Get all data from facebook page to android aplication [closed]

You can only use app_data to transfer data to your tab, and it will be in the signed_request parameter. See the Facebook docs for more information: https://developers.facebook.com/docs/appsonfacebook/pagetabs https://developers.facebook.com/docs/reference/login/signed-request 0 solved Get all data from facebook page to android aplication [closed]

[Solved] Get any user_id from Facebook url

You cannot get any Facebook’s User data using the Facebook API without the User’s explicit permission. The permission is granted to you (your APP) by the user in a popup window stating exactly what information you are receiving and with which permission type (read, write etc..) This is all for good reasons. 7 solved Get … Read more

[Solved] An error occurred, please try again later [closed]

A Facebook app will always be linked to the Facebook account (the developer’s) which created it. Which is why you are getting the GraphMethodException, because you can only access that data if you request it using the said account. So unfortunately you will have to re-create the app with a new Facebook account and update … Read more