小编Chr*_*oth的帖子

授权Facebook粉丝页面进行状态更新

我可以使用以下代码更新PROFILE墙上的状态:

require_once 'facebook-platform/php/facebook.php';
$facebook = new Facebook('APP API KEY','APP SECRET KEY');
$user_id = 'MY USER ID';
$facebook->api_client->users_setStatus('This is a new status');
Run Code Online (Sandbox Code Playgroud)

...授权使用此地址后:http: //facebook.com/authorize.php?api_key = MYAPPAPIKEY&v = 1.0&extra_perm = publication_stream

但是,此代码无法更新我的Facebook PAGE Wall上的状态.是否有其他参数可以添加到authorize.php网址以指定授权PAGE而不仅仅是我的个人资料?

或者,有没有更好的方法来发布粉丝页墙的更新?

谢谢!

php session facebook

10
推荐指数
1
解决办法
1万
查看次数

YouTube iFrame API .seekTo()不是一种方法?

我知道.seekTo()在Javascript API中工作,但我无法使用iFrame API.这种方法是否受支持?下面的代码成功嵌入了视频,并成功地将console.log -s作为播放器对象.我在控制台中收到错误"player.seekTo不是函数".

    <script>
        var tag = document.createElement('script');
        tag.src = "http://www.youtube.com/player_api";
        var firstScriptTag = document.getElementsByTagName('script')[0];
        firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
        var player;
        function onYouTubePlayerAPIReady() {
            player = new YT.Player('player', {
                height: '390',
                width: '640',
                videoId: 'u1zgFlCw8Aw'
            });
        }
        $(window).load(function(){
            jQuery('#test').click(function(){
                //console.log('test');
                console.log(player);
                player.seekTo(25);
                return false;
            });
        });
    </script>
    <a href="#" id="test">Test</a>
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?谢谢!

javascript php youtube youtube-api

8
推荐指数
2
解决办法
7756
查看次数

角度动画:动画父元素和子元素

我创建了div.parent一个效果很好的Angular动画元素()。当我向其添加子元素并尝试同时为其设置动画时,其中一个动画最终不会运行(它只是捕捉到新状态)。

Stackblitz: https ://stackblitz.com/edit/angular-2tbwu8

标记:

<div [@theParentAnimation]="state" class="parent">
  <div [@theChildAnimation]="state" class="child">
  </div>
</div>
Run Code Online (Sandbox Code Playgroud)

动画:

trigger( 'theParentAnimation', [
  state( 'down', style( {
    transform: 'translateY( 100% ) translateZ( 0 )',
  } ) ),
  transition( '* <=> *', [
    group( [
      query( ':self', [
        animate( '0.9s cubic-bezier(0.55, 0.31, 0.15, 0.93)' ),
      ] ),
      query( '@theChildAnimation', animateChild() ),
    ] ),
  ] ),
] ),
trigger( 'theChildAnimation', [
  state( 'down', style( {
    transform: 'translateY( 100% ) translateZ( 0 )',
  } ) ),
  transition( …
Run Code Online (Sandbox Code Playgroud)

javascript animation angular angular-animations

6
推荐指数
1
解决办法
3534
查看次数

在Wordpress 2.8中查询多个自定义分类术语?

我创建了一个名为"技术"的自定义分类,但不能像类别或标签一样查询多个术语.

这些查询可以工作:

query_posts('tag=goldfish,airplanes');

query_posts('technologies=php');
Run Code Online (Sandbox Code Playgroud)

但是,以下两种方法均无法正常工作:

query_posts('technologies=php,sql');

query_posts('technologies=php&technologies=sql');
Run Code Online (Sandbox Code Playgroud)

我的目标:使用'php'技术显示所有帖子,并使用'sql'技术显示所有帖子

有任何想法吗?这甚至可能吗?谢谢!

php wordpress taxonomy

4
推荐指数
2
解决办法
2万
查看次数

哪种基于API的支付提供商最适合众筹模式?

我正在建立一个以个人为中心的新个人网站,为有需要的家庭,有疾病的人,灾民等提供资金.我现在正处于规划阶段,正在努力计算付款细节.我理想的提供者将提供以下能力:

  • 运行内联交易(在我的网站上,我们没有iFrame)
  • 通过API创建用户和/或向尚未创建的用户汇款
  • 通过主要持有账户的API支付给收件人,或者立即向多个收件人汇款

根据研究,我认为PayPal Payments Standard或Pro不会起作用.PayPal标准不是内联的,PayPal Pro因拒绝crowsourcing应用程序而闻名.例如,Fiverr.com和GoFundMe.com使用PayPal Standard可能是因为他们未获得PayPal Pro的批准.

我使用PayPal标准时遇到的另一个问题是,我可能会被收取两次费用:一次收到持有账户,一次付给个人收款人.

有没有人有这方面的经验或关于支付提供商的建议?谢谢!

payment paypal crowdsourcing payment-gateway

2
推荐指数
1
解决办法
3676
查看次数