简体   繁体   English

iOS中的Facebook App请求(不使用对话框)

[英]Facebook App request in iOS (not using Dialog)

I need to send a request throw my app to user's friends in Facebook (After the app on Facebook is authorized) I know there is a way to do it through the SDK : 我需要向Facebook中的用户朋友发送一个将我的应用扔给我的请求(在Facebook上的应用被授权后),我知道有一种方法可以通过SDK进行:

[self.facebook dialog:@"apprequests" andParams:params andDelegate:nil];

But I don't need that way to show the dialog I just need to be able to send the request in the background when the user select the friend from (Table View for example). 但是我不需要那种方式来显示对话框,我只需要能够在用户从中选择朋友时(例如,表视图)在后台发送请求。

Is this possible? 这可能吗?

The Facebook Dialog API has not been updated (yet, hopefully). Facebook Dialog API尚未更新(希望如此)。 You can't bypass the dialog the way you want to do it. 您无法以想要的方式绕过对话框。 But, you can : 但是你可以 :

  1. preselect the friends with your own GUI and gives the apprequest the selected facebook ids. 使用您自己的GUI预先选择朋友,并为请求提供所选的Facebook ID。 This way, the dialog is just to confirm the request. 这样,对话框仅用于确认请求。

  2. activate the frictionless parameter, to avoid the dialog the next time you send the request for the same selected friends (the confirm dialog seems to show anyway, though, and immediately disappear, it gives a not-so-nice blink on the screen). 激活无摩擦参数,以避免在您下次发送相同选择的好友的请求时避免出现对话框(尽管无论如何,确认对话框似乎仍然显示,并且立即消失,它在屏幕上闪烁得不太好)。

here's the related documentation, in case you need it : https://developers.facebook.com/docs/howtos/send-requests-using-ios-sdk/ 如果需要,这里是相关文档: https : //developers.facebook.com/docs/howtos/send-requests-using-ios-sdk/

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

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