简体   繁体   English

Facebook iOS SDK-在不通过Facebook App的情况下检查传入请求?

[英]Facebook iOS SDK - Checking for Incoming Requests without Going Through the Facebook App?

I have implemented the ability to receive facebook requests in iOS through deep linking. 我已经实现了通过深层链接在iOS中接收Facebook请求的功能。 But it seems like to get the request, the user has to tap on the request in the Facebook app, which then opens my application. 但是似乎要获取请求,用户必须在Facebook应用程序中点击请求,然后打开我的应用程序。

This works, but I don't want to go through the Facebook app. 这行得通,但我不想浏览Facebook应用程序。 I would like the app to be able to poll (or be notified) for incoming requests so that I can display them in a custom inbox. 我希望该应用程序能够轮询(或收到通知)传入的请求,以便可以在自定义收件箱中显示它们。 Just like Candy Crush or just about any other mobile game with an inbox. 就像Candy Crush或几乎任何其他带有收件箱的手机游戏一样。

Is this possible with the Facebook SDK, or are these apps implementing their own custom messaging system? 使用Facebook SDK可以做到这一点,还是这些应用程序实现了自己的自定义消息传递系统? And if so, how is it done? 如果是这样,怎么做? I can't find any facebook example code that demonstrates how to implement this flow. 我找不到任何演示如何实现此流程的facebook示例代码。

The answer is pretty simple. 答案很简单。 Just send a request to https://graph.facebook.com/me/apprequests 只需发送请求到https://graph.facebook.com/me/apprequests

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

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