dongtaihui5131 2012-12-04 14:50
浏览 29

通过带有隐私SELF的图形API向Facebook好友发送任何类型的消息

I need to send a message, may be any possible message in Facebook, to a friend through an app i created. I want to invite some of my friends to a private poll. En some other friends to an other private poll.

Now I do the following with the Facebook graph api:

$array = array(
  'message' => $user->getName() . ' invited you to join ' . $poll->getName(),
  'link' => 'http://www.example.com/poll/' . $poll->getId(),
  'privacy' => "{'value':'SELF'}",
);
$fb->api('/[facebook_friend_id]/feed','POST',$array);

But when this is send from my application the message on my friends wall will be visible to everyone. But I only want this friend to fill in this poll, and not anyone else.

I found that the parameter of privacy doesn't work when a message is send through an application. I don't want to use the javascript SDK, because the layout and the implemention don't fit the expectations for our app.

So we only need a, only server-side, way to send a message or notification to a friend which only my friend and I can see. All the answers I found were like two years old, so a lot happend during that time.

  • 写回答

1条回答 默认 最新

  • duangu4943 2012-12-04 20:07
    关注

    That's not how Facebook Timeline privacy works; the visibility of content on someone's timeline is determined by the user whose Timeline it is, not the user who posts it.

    You can't post to someone else's timeline and choose the privacy.

    评论

报告相同问题?

悬赏问题

  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)