首页 \ 问答 \ 如何获得文本框文本的前3个字符?(How to get first 3 characters of a textbox's text?)

如何获得文本框文本的前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
更新时间:2021-10-25 12:10

最满意答案

您也可以使用/me/friends代替,但空数组是正确的。 您只会获得那些授权您的应用程序的朋友,自2014年4月底(图谱API的v2.0版本)以后,您再也找不到每个朋友了。

请看: https//developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids

  1. / me / friends返回同时使用您的应用的用户的朋友

有很多方法可以获得像invitable_friendshttps://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

  1. /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_ ...
  • 首先你的应用程序应该使用所需的权限, 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 ...
  • 您可以使用: $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 ...
  • 如果您使用的是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 ...
  • 就在这里! https://graph.facebook.com/{friends_uid}/posts 此调用将返回您有权查看的所有帖子(以及帖子中的数据 - 评论等...)(取决于您的朋友隐私设置)... 为了检索图片或视频,您所要做的就是更改带有视频或图片的“帖子”......当然,您的应用程序必须具有查看朋友图片和视频的权限。 Yes there is! https://graph.facebook.com/{friends_uid}/posts This call will return AL ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)