简体   繁体   English

显示Facebook组的iOS应用

[英]IOS app that displays a Facebook group

I would like to know what is the best way to show a Facebook group in an iOS app. 我想知道在iOS应用中显示Facebook组的最佳方法是什么。

I have a iOS app that uses Facebook logins for the users to access content. 我有一个iOS应用,该应用使用Facebook登录名供用户访问内容。 I thought I might be able to display the a Facebook group using a UIWebView. 我以为我可以使用UIWebView来显示Facebook组。 The problem is when the Facebook group webpage the opened, the user is presented with a login. 问题是当打开Facebook组网页时,会向用户显示登录名。 As the user has already logged into my app using Facebook, I am wondering if its possible to use the current access token to inform Facebook that the user is already logged in. 由于用户已经使用Facebook登录到我的应用程序,因此我想知道是否有可能使用当前访问令牌来通知Facebook用户已经登录。

If that doesn't work, how else could I add a Facebook Group to a iOS app? 如果那行不通,我该如何将Facebook组添加到iOS应用程序? Is there a sample app somewhere that displays Facebook page is a UIViewController? 是否有示例应用程序在某个显示Facebook页面的地方是UIViewController?

Thanks 谢谢

To the best of my knowledge, if you want to show FB content in a UIWebView , the user must perform the login inside the UIWebView . 据我所知,如果要在UIWebView显示FB内容,则用户必须在UIWebView内执行登录。 You cannot share your access token with the web-view. 您无法与网络视图共享访问令牌。

A possible solution would be to use the graph API (you're already using the FB iOS SDK, right?) to retrieve the group info, feed etc. and show it to your users. 一种可能的解决方案是使用图形API(您已经在使用FB iOS SDK,对吗?)来检索组信息,提要等并将其显示给用户。 The downside is that you'll have to create and display the group info yourself with your own design. 缺点是您必须使用自己的设计自己创建和显示组信息。

You can take a look at the FB graph API for groups here . 您可以在此处查看用于组的FB图API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM