English 中文(简体)
取代默认的朋友拾取者?
原标题:Alternative to the default friend picker?

我注意到许多FB游戏都使用类似于我贴在本文上的界面。 这是标准 FB 拾取器还是FB 开发商刚刚决定了一种风格, 并且都在相互借用? 谢谢。 “friend

最佳回答

The dialog you post is a custom solution that a lot of apps include in their apps,
i don t know what and where to find this but you can build your own by calling all the friends via Graph API,

or you can use something like this:
http://www.emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html
http://www.emposha.com/javascript/fcbkcomplete.html

问题回答

我想象到您连接到应用程序, 应用程序可以读取您的朋友列表, 手动显示此列表 。

这看起来像一个老式的老式、破旧的采摘者, 发出老式的要求, 这些要求是超老式的, 很快会被删除

The only currently supported method for doing this is the Requests dialog which looks like this: enter image description here

您可以在几步内创建一个自定义的朋友选择器 。

  1. Call the API and get a list of the user s friends
  2. Display the list to the user and let them select the friends they want to invite (you can use checkboxes or another method for doing this).
  3. Use the single / multiple request JavaScript function described here to send the requests: http://developers.facebook.com/docs/reference/dialogs/requests/#direct_request

这将允许您随意显示朋友列表, 但仍然使用 API 正确发送请求 。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签