[facebook] 在FBML APP中使用FB幣


其實我真的不明白為了什麼facebook要把這件事搞得那~麼複雜!?
明明FBML就是他自幾家的東西,應該是要支援最好,隨便呼叫個API就可以用才對!結果已經花了九牛二虎的力氣加上兩個禮拜的時間申請好EIN,迎接的卻是:
API Error Code: 1151
API Error Description: Application is not enabled for using Facebook Credits.
Error Message: Invalid Application
然後看了半天的英文才發現官方是這樣回答

Hi Everyone,

Thanks for the comments. All games on Facebook.com will be required to migrate to Facebook Credits as their exclusive payment method by July 1st, 2011.

This includes fbml games. As we are in the process of deprecating fbml, announced last August, Credits is not supported in fbml. All fbml games will need to migrate to iframe to use Credits.

Thank you,

Sara

Facebook Platform Team

這是什麼鬼???
繼續閱讀

WordPress中的query_posts函數

像要用wp做一個非blog的theme
不跟query_posts打交道是不行的
query_posts是在wp中決定要列出那些文章的函數
譬如我要在編號6的類別下但又不要標號70的前20篇文章
可一寫成這樣:

  < ?php $query_array = array("showposts"=>20,"post__not_in"=>array(70),"category__in"=>array(6));
				query_posts($query_array); ?>
  < ?php while (have_posts()) : the_post(); ?>
  <h4 id="post-<?php the_ID(); ?>">
    < ?php the_title(); ?>
  </h4>
  < ?php the_content(); ?>
  < ?php endwhile; ?>
  < ?php endif; ?>

繼續閱讀