如何获得文本框文本的前3个字符?(How to get first 3 characters of a textbox's text?)
如何获得文本框中文本的前3个字符?
例如,
textBox1.Text = "HITHEREGUYS"
当我得到前3个字符时,它应该显示
HIT
。How do I get the first 3 characters of the text in a textbox?
For example,
textBox1.Text = "HITHEREGUYS"
When I get the first 3 characters, it should show
HIT
.
原文:https://stackoverflow.com/questions/17386978
最满意答案
您也可以使用
/me/friends
代替,但空数组是正确的。 您只会获得那些授权您的应用程序的朋友,自2014年4月底(图谱API的v2.0版本)以后,您再也找不到每个朋友了。请看: https : //developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids
- / me / friends返回同时使用您的应用的用户的朋友
有很多方法可以获得像invitable_friends和https://developers.facebook.com/docs/graph-api/reference/v2.1/user/taggable_friends这样的整个朋友列表 ,但这些端点应该用于非常具体的任务(用于邀请游戏和标记)。
You can also just use
/me/friends
instead, but the empty array is correct. You only get those friends who authorized your App too, you don´t get every friend anymore since end of April 2014 (v2.0 of the Graph API).See here: https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids
- /me/friends returns the user's friends who are also using your app
There are ways to get the whole friendlist like invitable_friends and https://developers.facebook.com/docs/graph-api/reference/v2.1/user/taggable_friends, but those endpoints are supposed to get used for very specific tasks (for inviting in games and for tagging).
相关问答
更多-
如果您可以为用户的朋友获取一组UID,您可以使用IN在一个SQL语句中找到它们(根据属性等,这里有一些handwaving和/或伪代码): uids = @friends.collect(&:uid) # uids is an array of Facebook UID's, say [1234, 5678, 9012] registered_friends = User.where('fb_uid IN (?)', uids) # "SELECT users.* FROM users WHERE (fb_ ...
-
如何在JavaScript中使用Facebook API获取朋友的列表(how to use facebook API getting friend's list in javascript)[2024-03-12]
首先你的应用程序应该使用所需的权限, user_birthday, friends_birthday, user_location , friends_location... (为了更多的权限) 获取有关当前用户的信息: FB.api('/me', function(response) { // Stuff here }); 获取有关当前用户朋友的信息: FB.api('/me/friends', function(response) { // Stuff here }); 你会得到 ... -
您也可以使用/me/friends代替,但空数组是正确的。 您只会获得那些授权您的应用程序的朋友,自2014年4月底(图谱API的v2.0版本)以后,您再也找不到每个朋友了。 请看: https : //developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids / me / friends返回同时使用您的应用的用户的朋友 有很多方法可以获得像invitable_friends和https://developers.facebook ...
-
你想要做的是不可能的。 当用户授权并正在使用您的应用程序时,该扩展权限集(请参阅Facebook权限 )将明确应用于该用户。 因此,如果您拥有读取朋友数据的扩展权限,则只能获取与当前用户相关的朋友数据 - 因为这些是您拥有的权限,并且您没有有效的访问令牌,与朋友有关进一步。 如果你想进一步遍历图表,这些朋友必须授权你的应用程序,你需要一个离线访问令牌来获取他们的朋友数据。 Facebook主网站上有许多功能无法通过任何Facebook API访问。 这可能令人沮丧,但是你必须处理可用的功能。 What yo ...
-
taggable_friends仅用于标记朋友,您不应该将其用于其他任何内容,并且您不会在审核过程中获得批准。 唯一认真/允许的方式是使用/me/friends ,但请记住,您只会获得授权您的应用程序的朋友。 这意味着您只能使用授权您的应用的“朋友”参数的朋友。 taggable_friends is for tagging friends only, you are not supposed to use it for anything else and you would not get it appr ...
-
让facebook成为某些用户的共同朋友(不是我的朋友)(Getting facebook mutual friends of some users (not my friends))[2024-01-06]
您可以使用: $fb_result = $facebook->api("/{$user_fb_id2}/mutualfriends/{$user_fb_id1}"); 请注意,用户: user_fb_id2必须是您的应用程序的用户才能使用它。 更新:您可以为此目的使用FQL查询和批处理请求。 You can use: $fb_result = $facebook->api("/{$user_fb_id2}/mutualfriends/{$user_fb_id1}"); Note that, the us ... -
这里是我的代码,使用jQuery: $('#popInvite').live('click', sendRequest); function sendRequest() { FB.ui({ method: 'apprequests', message: 'Become my Buddie', filters: ['app_non_users'], title: 'Become my Buddie' }, functio ...
-
Facebook算朋友(Facebook count friends)[2023-11-04]
如果您使用的是API v2.0,则无法吸引所有朋友。 如果您在2014年4月30日之后创建了应用,则必须使用API v2.0。 If you are using API v2.0 you can not get all friends. And if you created your app after 4/30/2014 you have to use API v2.0. -
您只能使用该特定用户的用户令牌和以下端点来获取用户的朋友: /me/friends 如果您想在离线时获取用户的朋友,您必须存储他的用户令牌或他的朋友列表。 如果您存储他的朋友列表,您应该在用户再次上线时刷新列表,或者它可能不是最新的。 请注意,您也只能通过user_friends权限获得授权您的应用的朋友。 You can only get the friends of the user with a User Token of that specific user and the following en ...
-
获取朋友的Facebook帖子(Get Friends' Facebook posts)[2022-04-04]
就在这里! https://graph.facebook.com/{friends_uid}/posts 此调用将返回您有权查看的所有帖子(以及帖子中的数据 - 评论等...)(取决于您的朋友隐私设置)... 为了检索图片或视频,您所要做的就是更改带有视频或图片的“帖子”......当然,您的应用程序必须具有查看朋友图片和视频的权限。 Yes there is! https://graph.facebook.com/{friends_uid}/posts This call will return AL ...