- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个用 php 编写的博客网站,它将新的博客文章发布到 Twitter,并在后台使用使用 php curl 传递的简单 http 发布请求自动执行博客 ping 操作。
我有一个博客网站的 facebook 页面,我想将更新发布到页面上的墙上,有没有简单的方法可以做到这一点?
我真正想要的是一个 url 和一组参数来打包为一个 http post 请求。
请注意,这是在新样式页面上发布到墙上,而不是个人资料。
最佳答案
从github获取PHP SDK并运行以下代码:
<?php
$attachment = array(
'message' => 'this is my message',
'name' => 'This is my demo Facebook application!',
'caption' => "Caption of the Post",
'link' => 'http://mylink.com',
'description' => 'this is a description',
'picture' => 'http://mysite.com/pic.gif',
'actions' => array(
array(
'name' => 'Get Search',
'link' => 'http://www.google.com'
)
)
);
$result = $facebook->api('/me/feed/', 'post', $attachment);
上面的代码会将消息发布到你的墙上......如果你想发布到你的 friend 或其他人的墙上然后用该用户的 Facebook 用户 ID 替换 me
..更多信息请查看 API 文档。
关于facebook - 你如何在 Facebook 页面上发布到墙上(不是个人资料),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/691425/
我正在使用passport.js 为我的node.js 应用程序提供OAuth 身份验证。但我确实有一个疑问: 当我在身份验证时收到配置文件对象(当您定义 OAuth 策略时)时,该对象对于所有提供商
我正在尝试对 wordpress 布局进行解码/逆向工程。我正在浏览 CSS 文件,无法弄清楚这个长长的菜单 mumbo-jumbo 是什么! 我不是要任何人检查代码,而是让我知道我在看什么。这些似乎
所以我尝试制作一个包含私有(private)配置文件的 symfony 项目,并且我使用 FriendsOfSymfony,但是如果我创建两个用户,每个人都可以看到其他人上传的文件。我尝试在多个网站上
我正在编写一个需要使用已登录 G+ 用户的公开个人资料图片的 JS 应用。 如果我有用户 ID,我可以使用 Google+ API 查询个人资料数据。 https://developers.googl
我看过很多关于 facebook 身份验证的帖子,要么是旧的,要么不能正常工作。 然而,最终我在我的项目中做了一些可行但不完全的东西。这是我要求的代码 var facebookAuth
我是一名优秀的程序员,十分优秀!