简体   繁体   English

我可以在移动设备上使用facebook-unity sdk向朋友发送生命吗?

[英]Can I send life to a friend using facebook-unity sdk on mobile devices?

I'm trying to implement "ask life", "send life" features in my game. 我正试图在我的游戏中实现“请求生活”,“发送生活”功能。 Now I'm stuck with facebook-unity sdk. 现在我坚持使用facebook-unity sdk。 I was able to send simple requests with FB.AppRequest, but can't figure how to send requests with OGActionType.SEND and OGActionType.ASKFOR types. 我能够使用FB.AppRequest发送简单请求,但无法确定如何使用OGActionType.SEND和OGActionType.ASKFOR类型发送请求。 As I figured out, I need to send objectId of the object that i want send to another player. 正如我想的那样,我需要发送我想要发送给另一个玩家的对象的objectId But, I can't figure out how to add it. 但是,我无法弄清楚如何添加它。 Object browser in facebook developer dashboard doesn't contains button for adding new object facebook开发人员仪表板中的对象浏览器不包含用于添加新对象的按钮 对象浏览器

I found another question, where mentioned that 2.8 FB api doesn't support creation of new objects: Add new object with facebook developer api v2.8 我发现了另一个问题,其中提到2.8 FB api不支持创建新对象: 使用facebook developer api v2.8添加新对象

So, I have 2 main questions currently: 所以,我目前有两个主要问题:

  1. Is it possible to implement "send life" feature with facebook-unity api ? 可以用facebook-unity api实现“发送生活”功能吗?
  2. If yes, can I do something to add facebook OG object or there is another way to do it? 如果是的话,我可以做一些事情来添加Facebook OG对象,还是有另一种方法可以做到这一点?

Yes, it is possible to do what you want, and I believe OG objects are the way to do it. 是的,可以做你想做的事情,我相信OG对象就是这样做的。 I wrote a tutorial a while back on how to achieve just this, since it took me a while too to figure it out. 我曾经写过一篇关于如何实现这一目标的教程,因为我花了一段时间才弄明白。

Hope it helps you! 希望它能帮到你!

http://www.bigfootgaming.net/blog/tutorials/facebook-open-graph-objects-in-unity3d/ http://www.bigfootgaming.net/blog/tutorials/facebook-open-graph-objects-in-unity3d/

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

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