w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
How to get friend of friend details from facebook iOS SDK?
After Authorization stuff ... Try this request .. [facebook requestWithGraphPath:@"[friend_id]/friends" andDelegate:self]; You will get the friends of any friend ..

Categories : Iphone

Facebook Unity SDK has error when send request with custom friends in Unity Webplayer
One of the Facebook software engineers here. Are you passing in null to the data or title param for FB.AppRequest()? There's a bug where it doesn't handle that correctly currently. Either exclude that or pass in an empty string. We'll get that fix ASAP. Thanks for finding that. Update: The latest SDK version has that fix.

Categories : Facebook

Why is facebook api asking this message on login with facebook for authorised users - "Application name" would like to access your friend list.?
The Facebook app authorization screen says that the app would like to access your friend’s list. But in truth, the app probably didn’t ask for that. The friends list is part of every app authorization, whether the app wants it or not. This is because Facebook wants apps to add social context, which can only be done with the friends list. But this doesn’t give the app the ability to contact your friends on your behalf, at least not more than it could do so without you adding the app anyway. Check for an reference https://www.facebook.com/about/privacy/your-info-on-other#applications

Categories : Facebook

Can i get facebook friend list without login on facebook
I believe you cannot get any data without access token and to get access token you need to login. Therefore, you still need to login. In short, it is not possible. This is from Access Tokens - Facebook Developer An access token is a random string that identifies a User, App or Page session and provides information about granted permissions. Access tokens are obtained via a number of methods, each of which are covered later in this document. The token also includes information about when the token will expire and which app generated the token. Because of privacy checks, the majority of API calls on Facebook need to include an access token. There are different types of access tokens to support these various cases: User Access Token – This kind of access token i

Categories : PHP

Getting my friend from facebook
string myAccessToken = "something"; FacebookClient client = new FacebookClient(myAccessToken); The myAccessToken is the User token you can get from here https://developers.facebook.com/tools/access_token/ instead of FacebookClient fbClient = new FacebookClient(); dynamic result = fbClient.Get("oauth/access_token", new { client_id = <REMOVED APP ID>, client_secret = "<REMOVED APP SECRET>", grant_type = "client_credentials" }); fbClient.AccessToken = result.access_token;`enter code here`

Categories : C#

How to get friend's username from facebook API?
You'll get a JSON in the result of : myJSON = string.Format("https://graph.facebook.com/{0}?fields=username", user.Id); You can get the username of the user with- myJSON.username

Categories : C#

Is it possible to get friend's emails using facebook api?
From the Facebook docs: "Likewise, to protect the privacy of users who have not explicitly authorized your application, your application will only be able to access the basic profile information about a user's friends, like their names and profile pictures. If your application needs to access other data about a user's friends to enable social functionality, you will need to request some of the special friends permissions listed below."

Categories : PHP

Get Facebook's friend gender
Displaying a Friend object only displays his ID and name. You have to indicate that you want the gender! me/friends?fields=gender&access_token= If you still want the name: me/friends?fields=gender,name&access_token=

Categories : Java

Display friend Facebook on IOS
Any modification done to variables inside the block don't show outside of it. So, you need to declare them with __block for the modifications done inside the block to be visible outside. This is what you need to do in your .h file __block NSMutableArray* _itemsNamesFriend; That should solve you problem.

Categories : Facebook

how to get friend's likes from facebook
Get pagination section, and parse it to get next_page value, then send a query for it. There's no automatic process or get all method , otherwise spams/bots would be the happiest creature in this world.

Categories : Facebook

Count friend's posts on Facebook API
You can just query the graph api on https://graph.facebook.com/USERID/posts which will return an array with all the relevant info on each post. That should be enough to get you started at least. Try the graph explorer here... https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fposts

Categories : Facebook

How do you post to a friend's wall using the C# Facebook SDK?
As of February 6, 2013, you can't post to Friends Timeline on behalf of the user. Read Here: https://developers.facebook.com/roadmap/completed-changes/ Client-Side you can use the FB.ui method to pop up the feed dialog. Here's an example: http://stackoverflow.com/a/15426243/1405120 Server-Side, you can use the URL Redirection. https://www.facebook.com/dialog/feed? app_id=458358780877780 &link=https://developers.facebook.com/docs/reference/dialogs/ &redirect_uri=https://mighty-lowlands-6381.herokuapp.com/ Read more about Feed dialog here, https://developers.facebook.com/docs/reference/dialogs/feed/

Categories : Facebook

Need Facebook API call to find friend using my app
The Facebook API never worked properly in LWUIT because of several inherent bugs in the HTMLComponent and OAuth code. We fixed all of those in Codename One but backporting this isn't practical. I suggest checking out Codename One and the facebook demo therein.

Categories : Java

Facebook sdk fetch friend error
Here you have a code sample that fetches the friends info: [facebook requestWithGraphPath:@"me/friends" andParams:[ NSDictionary dictionaryWithObjectsAndKeys:@"picture,id,name,link,gender,last_name,first_name",@"fields",nil] andDelegate:self]; Remember to: implement the proper delegate methods You must call authorize before fetching the friends information. This way the user will be able to login first. I hope this helps, cheers

Categories : Iphone

Send app notification to a friend in Facebook
I had to set as redirect_uri the baseURL from my URL where I launched the request (in my case URL = localhost:8080/FB_Test) so the baseURL that I have to set in the redirect_uri in my Website with Facebook login is: localhost:8080. This link passed by @Anvesh Saxena helped me a lot !! Link: Facebook API error 191

Categories : Javascript

How to get Facebook Friend contact number
Yes, start with the Facebook SDK for Android. Here is a demo, for showing a User's friend. You should be able to adapt it for your needs.

Categories : Android

Facebook friend list fetching
oFor the logout, you can use FB.logout(function(response) { //console.log(response); // do something usefull ... }); and put that on a button. BUT: you are currently logging off the user from Facebook AND from your app, users might find that strange?

Categories : Facebook

Send friend request from IOS using facebook SDK
Try changing your code to this: NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"My Title", @"title", @"Come check out my app.", @"message", FrienduserId, @"id", nil]; [FBWebDialogs presentDialogModallyWithSession:appDelegate.session dialog:@"friends" parameters:[params mutableCopy] handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error)]; if (error) { NSLog(@"%@",error); } else { NSLog(@"done"); } This should at least solve part of your problem. There may still be something else wrong, I just fixed your s

Categories : IOS

Not able to fetch Facebook friend photo
Your graph url is off. To get a specific users photo album list you need: {user_id}/albums?fields={list_of_album_fields} In conjunction with user_photos and/or friends_photos permissions The Facebook graph explorer is an excellent tool for getting your graph url's right before coding. Try it out to verify this solution. If you're looking to get all albums for all friends in a single pass you'll need to formulate this as either FQL or a batch request.

Categories : Facebook

How to get facebook pending friend requests through fql
You need the read_requests permission for any friend requests that are sent by or to the current session user. You can read a list of friend requests sent to the current user - SELECT time, message FROM friend_request WHERE uid_to = me() Or, you can check the status of any friend request sent by the current user, but you have to provide the id of the user to whom the request was sent. You cannot retrieve all friend requests sent by the current user - SELECT time, message FROM friend_request WHERE uid_from = me() AND uid_to = ID

Categories : Facebook

Catch Facebook friend email-id in IOS
The email permission is only for the logged_in user There is no way for apps to obtain email addresses for a user's friends. from the documentation

Categories : Iphone

How to get Facebook friend's Anniversary date using graph Api
If you mean marriage anniversary- There's no such api that can fetch this for you. If you mean birthday anniversary- You can fetch with - /ID?fields=birthday with permission: user_birthday

Categories : Android

How to find out if a user's facebook friend has joined my app?
Instead of fetching the users friends and comparing them to the users in your database, simply use this API call: /{user_id}/friends?fields=installed Of course you can add other fields to this list to get more data of the friends.

Categories : Ruby On Rails

How Can i send the Message or Notification to Particular Friend In Facebook
It looks like you can't send private messages any more through the graph-api due to some abuse issues. If you're just trying to post to someone's news feed then you need to be sure that you request the appropriate permissions when generating your access token (either publish_stream or publish_actions depending on what exactly you're trying). The permissions are listed here: https://developers.facebook.com/docs/reference/login/extended-permissions/ Details for requesting additional permissions in the android SDK are here: https://developers.facebook.com/docs/android/login-with-facebook/#step3 Hope this helps. Edit: Re Email, there is no way to get a friend's email. The "email" permission gives you access to the user's email, but there is no equivalent for "friends_email". Facebook is

Categories : Android

post image to facebook friend's wall
With NSData, you can add image to UIActivityViewController. Try below one. NSString *text = @"your text goes here"; NSData *Da = UIImageJPEGRepresentation([UIImage imageNamed:@"Icon.png"], 1.0); NSArray * activityItems = @[text,Da]; UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:[NSArray arrayWithObjects:nil]]; activityVC.excludedActivityTypes = @[UIActivityTypePostToWeibo]; //or whichever you don't need [activityVC setCompletionHandler:^(NSString *activityType, BOOL completed) { }]; [self presentViewController:activityVC animated:YES completion:nil];

Categories : Iphone

Android facebook send app request to friend
Your code is absolutely fine.What I assume is, you have not set the required fields in the Facebook app console.see the Following image.Those are the required fields in order to send app request. Package Name: Insert the package name of your app so that user will be redirected to your app in the Google Play if the app is loaded in the market. Class Name: It is the launcher Activity name of your App. Key Hashes: It is the unique identifier SHA1 key that you have to generate. Facebook Login, Deep Linking: both need to be enabled.

Categories : Android

Facebook make a friend request on iOS / API call
Use one of the presentDialogModally methods in FBWebDialogs and pass it the session and @"friends" as the dialog param.

Categories : IOS

sending notifications to user's friend in facebook using js sdk
the problem was that its not the normal access token, here the access token will be a combination of your app id and app secret separated by "|" symbol. also you need to send the data as an array and not as a json object. So here is what the working code looks like. function makePost(personid){ var address = "https://graph.facebook.com/" + personid + "/notifications"; var tempdata = {}; tempdata['access_token'] = appId + "|" + appSecret; tempdata['href'] = ""; tempdata['template'] = "You have earned 5 credits, Click here to redeem"; jQuery.post(address, tempdata , function(data){ console.log(data); }); } PS: I am using Jquery Library to make the post request, So dont forget to include jquery.

Categories : Javascript

which api use to post of facebook friend wall from blackberry?
I don't think there is anyway else to phrase it: You cannot post to a friend's wall using the API period. There is no support for it, and it is listed right there in the roadmap. We have found that posting content via API (stream.publish) on a friend's wall lead to a high incidence of user dissatisfaction (hiding content, blocking the app). After the migration period, posting content to friends' timelines via stream.publish will no longer be allowed. Please use the Feed Dialog for posting. The feed dialog is a manual user generated action. FQL is not used for posting.

Categories : Facebook

how to post text to friend wall in Facebook in iphone sdk?
Try this : NSMutableDictionary *postVariablesDictionary = [[NSMutableDictionary alloc] init]; [postVariablesDictionary setObject:@"LOL" forKey:@"name"]; [postVariablesDictionary setObject:@"helllo" forKey:@"message"]; //Post to friend's wall. [FBRequestConnection startWithGraphPath:[NSString stringWithFormat:@"%@/feed", self.fbFriendsInvited] parameters: postVariablesDictionary HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) { NSLog(@"%@",result); }];

Categories : Iphone

FQL friend table return a lot of stranger name - "Facebook User"
this seems to be a bug, I filed it for you at https://developers.facebook.com/bugs/555447487827125 you can subscribe to follow it.

Categories : Facebook

facebook started requesting that our users all us to "access friend list"
It's an issue with Facebook and will be resolved soon. See this link to read more about it. Also, I asked a similar question on meta - http://meta.stackexchange.com/questions/194086/why-does-stack-exchange-want-to-access-my-facebook-friends-list

Categories : Facebook

ios How does facebook and instagram update those notification numbers (eg message, like, or friend)
Yes. They do use push notification for updates of friends/follow/IM. The cost of using Push Notifications is something big company can easily afford and it is nothing compared to how much money a iOS app can make to the dev.

Categories : IOS

How do I customize the message displayed in a users Facebook friend request (invite)?
Sadly, apprequests 'message' is visible only if target user already granted permissions to your application. This is a known Facebook limitation to avoid phishing and spam. There was a workaround (circa Q1 2012), which adding new_style_message: true to FB.ui options parameter showed it. Some people reported that it still works for them, but (as of my recent tests) it's not working anymore. Cheers!

Categories : Facebook

Why I am request email scope for oauth, Facebook also show I need to access friend list?
With reference to : Permissions- Basic Info (Default)- Basic info is part of every request for permissions. It includes several elements from a person's public profile and a list of their friends. A person's public profile refers to the following properties on the user object by default: id name first_name last_name link username gender locale age_range Other public information The friend list is the friend list node on the user object.

Categories : Facebook

About Getting Started with the Facebook SDK for Unity
Facebook is providing instructions on how to deploy a simple web server locally if you don't already have one, specifically the SimpleHTTPServer one (http://docs.python.org/2/library/simplehttpserver.html). The prerequisite is to have a SSL/TLS-capable Web server. So First Step: Allow for SSL capability by using openssl to generate a key file for use in the server. (Keep it in the same directory) openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -node After executing this command, a series of prompts will be asked but for the purposes of the tutorial it isn't important what the values are as long as they are non-blank Second Step: Create a file called web.py with the following contents import BaseHTTPServer, SimpleHTTPServer import ssl httpd = BaseHTTPServer.HTTPSer

Categories : Facebook

OAuthWebSecurity Facebook ominous message: app "would like to access your public profile, friend list and email address"
Those are the very basic permissions that a user grants you by just logging in to your app - has always been that way, FB have just updated the message shown to the user to make it more clear what they actually share. You can not ask for "less" permissions.

Categories : Facebook

How to get Expiration Date of access token in Facebook SDK for Unity
Got this problem solved by myself using debug_token. Here is the right code on how to do it. FB.API("/debug_token?input_token="+FB.AccessToken+"&access_token="+FB.AccessToken,Facebook.HttpMethod.GET, AccessTokenCallback); function AccessTokenCallback(response:String){ Debug.Log(response); var access = JSON.Parse(response); Debug.Log("Token Expiration is: "+access["data"]["expires_at"].Value); } If you will print the response it will give you a JSON with all information about the access token and you can take whatever info you need about an access token.

Categories : Facebook

Most Vexing Friend ? Friend-ing a specialized free-function template raises compilation error (when overloading a method)
First of all, the basic premise of your friend declaration is sound: [C++11: 14.5.4/1]: A friend of a class or class template can be a function template or class template, a specialization of a function template or class template, or an ordinary (non-template) function or class. For a friend function declaration that is not a template declaration: if the name of the friend is a qualified or unqualified template-id, the friend declaration refers to a specialization of a function template, otherwise if the name of the friend is a qualified-id and a matching non-template function is found in the specified class or namespace, the friend declaration refers to that function, otherwise, if the name of the friend is a qualified-id and a matching function template is found in the sp

Categories : C++

iOS Static library for unity with App switching issue Facebook integration
You should create a StaticLibAppDelegate in your static library, implement the required functionality and ask the user of your library to inherit his AppDelegate from StaticLibAppDelegate. StaticLibAppDelegate will inherit from UIApplicationDelegate. Ask the user to call super implementation from various delegate methods your library needs. Ex: In his applications delegate, if user overrides application:openURL:sourceApplication:annotation: then ask him to call [super application:application openURL:url sourceApplication:sourceApplication annotation:annotation]; from his implementation. Hope that helps!

Categories : IOS



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.