关于php–开发Facebook风格的新闻Feed和facebook用php开发的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于#import"facebookSDK/FacebookSD
关于php – 开发Facebook风格的新闻Feed和facebook用php开发的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于#import
- php – 开发Facebook风格的新闻Feed(facebook用php开发)
- #import
"facebookSDK/FacebookSDK.h file not found" - android – Facebook me / feed只能在开发者帐户上发布
- c# – Facebook Graph API“/ userid / feed”返回Blank
- com.facebook.FacebookGraphObjectException的实例源码
php – 开发Facebook风格的新闻Feed(facebook用php开发)
我已经建立了其他所有部分,我唯一的问题是围绕内联评论.我想做类似于Facebook所做的事情,他们用一个按钮呈现x条评论以显示所有y评论.
但是,我能看到的唯一两种方法是:
>在渲染每个项目的循环中执行SELECT(我想任何可能对此有答案的人都会同意我这是一个糟糕的决定)
>执行一个大的select来获取news_id在某个子集中的所有注释,然后使用PHP迭代它们,选择最近的x,忽略其余的.
这些都不是一个好的解决方案;然而,因为它们都涉及巨大的资源浪费.
有没有人有实施这个的潜在建议?
解决方法
SELECT * FROM comments_table WHERE article_id = {something} LIMIT {no_of_comments_per_page} SORT BY date DESC
这是一个非常简单但功能强大的评论查询.
实际代码
<?PHP $sql = "SELECT * FROM comments_table WHERE article_id = 24 LIMIT 40 SORT BY date DESC"; $data = MysqL_query($sql); $comments = MysqL_fetch_assoc($data); foreach($comments as $comment){ $ct++; echo "ID: {$ct}"; echo "<br />"; echo "Comment: {$comment["comment"]} by {$comment["user"]}"; echo "Date: {$comment["date"]}"; } ?>
#import "facebookSDK/FacebookSDK.h file not found"
第一种可能: 从window下上传到mac 下 facebook sdk出错!【这个是系统的错误,只能从其他地方拷贝 FacebookSDK.framework 文件夹 就ok】,下图是正常状态,【不正常的状态下,这几个文件直接是物理文件了】
第二种可能 ,设置读取路径错误
在mac下 project下找到build setting ,再找 searchPath,点击Framework search paths 设置路径即可
"$(SRCROOT)/xxx/xxx/FacebookSDK.framework"
android – Facebook me / feed只能在开发者帐户上发布
我在这里遇到一个奇怪的情况.虽然发布到Facebook我希望我的应用程序绕过对话框要求写一些东西并显示我自己的自定义对话框.因此我必须使用“我/饲料”.该应用程序工作正常我在开发者帐户中发布了一些内容.但是当我尝试在其他帐户中发帖时,它有时会返回任何内容或某些时候返回:
08-21 12:26:29.332: D/Facebook-Util(6796): POST URL: https://graph.facebook.com/me/Feed
08-21 12:26:29.722: D/Tests(6796): got response: {"error":{"message":"(#200) The user hasn't authorized the application to perform this action","type":"OAuthException","code":200}}
我真的很困惑我在这里做了什么错.为什么消息不是开发者帐户以外的帖子..?
这是我的相关代码:
if (facebook.isSessionValid()) {
facebook.authorize(BoonDriveActivity.this,
new String[] { "publish_stream","publish_actions","manage_pages","status_update"},//This are the permissions
new DialogListener() {
@Override
public void onCancel() {
// Function to handle cancel event
}
@Override
public void onComplete(Bundle values) {
// Function to handle complete event
// Edit Preferences and update facebook acess_token
final SharedPreferences.Editor editor = mPrefs.edit();
editor.putString("access_token",
facebook.getAccesstoken());
editor.putLong("access_expires",
facebook.getAccessExpires());
editor.commit();
LayoutInflater inflater=BoonDriveActivity.this.getLayoutInflater();
View layout=inflater.inflate(R.layout.createsharedialoglinkedin,null);
final AlertDialog d1 = new AlertDialog.Builder(BoonDriveActivity.this)
// Your other options here ...
.setView(layout)
.create();//My custom dialog
d1.getwindow().setSoftInputMode(WindowManager.LayoutParams.soFT_INPUT_ADJUST_RESIZE);
d1.show();
lntxtfilename=(TextView)layout.findViewById(R.id.txtfilename);
lnetmessage=(EditText)layout.findViewById(R.id.et_message);
ln_btn_share=(Button)layout.findViewById(R.id.btn_share);
ln_btn_showlink=(Button)layout.findViewById(R.id.btn_showlink);
lnshowlink=(EditText)layout.findViewById(R.id.et_showlink);
ln_btn_share.setText("SHARE ON FACEBOOK");
ln_btn_showlink.setonClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Todo Auto-generated method stub
ln_btn_showlink.setVisibility(View.GONE);
lnshowlink.setVisibility(View.VISIBLE);
lnshowlink.setText(finallink);
}
});
lntxtfilename.setText("Share"+" "+filename+" "+"with:");
ln_btn_share.setonClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Todo Auto-generated method stub
//String s = ((GlobalFilename)BoonDriveActivity.this.getApplication()).getGlobalState();
if(lnetmessage.length()==0)
{
Toast.makeText(BoonDriveActivity.this,"Please enter message",Toast.LENGTH_LONG).show();
}
else{
String share1 = lnetmessage.getText().toString();
//String finalmsg=share1+"\n"+s;
System.out.println("This is the final msg linkedin--->"+ finallink);
//lnetmessage.setText(finalmsg);
//postToWall();
postToWall(share1,finallink);
d1.dismiss();
}
}
});
}
@Override
public void one rror(DialogError error) {
// Function to handle error
}
@Override
public void onFacebookError(FacebookError fberror) {
// Function to handle Facebook errors
}
});
}
}
我搜索了很多关于这个,但找不到解决方案.请帮忙.
我使用以下方法发布到墙上:
@SuppressWarnings("deprecation")
public void postToWall(String message,String link){
Bundle parameters = new Bundle();
parameters.putString("message", message+link);
// parameters.putString("link",link);
/* parameters.putString("description", "topic share");
parameters.putString("picture", link);*/
try {
String response = facebook.request("me");
facebook.request("me");
response = facebook.request("me/Feed", parameters, "POST");
Log.d("Tests", "got response: " + response);
if (response == null || response.equals("") ||
response.equals("false")) {
showToast("Blank response.");
}
else {
showToast("Message posted to your facebook wall!");
}
} catch (Exception e) {
showToast("Failed to post to wall!");
e.printstacktrace();
}
}
解决方法:
如果您的应用尚未经过审核,则此应用的管理员和开发者之外的其他任何用户都无法提供相应的权限.
这在文档中描述:
> https://developers.facebook.com/docs/apps/review/login#do-you-need-review
引用:
If you’re the developer of an app and are the only person using it, then your app doesn’t need to go through review. Since you’re the developer, all app capabilities should be available. You will still need to take your app out of developer mode, but you should be able to do that without going through review.
而且,BTW,没有status_update权限……
c# – Facebook Graph API“/ userid / feed”返回Blank
我从用户那里获得了以下扩展权限:
scope=offline_access,publish_stream,publish_checkins,create_event,read_stream,user_about_me,user_events,user_hometown,user_location,user_photos,read_friendlists,read_requests,user_checkins,user_relationships,user_online_presence,user_notes,user_likes,user_work_history
我有一个用于离线访问的访问令牌.
我能够毫不费力地检索用户ID /朋友信息,但似乎无法获取Feed数据.
我得到以下返回:
{ "data": [ ] }
我获得了type =“client_cred”的令牌,如果这有所不同的话.该进程在用户离线时运行,因此我不使用“me”别名.
有人能指出我做错了吗?
解决方法
com.facebook.FacebookGraphObjectException的实例源码
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
void updateObjectAttachmentUrls(String objectProperty,List<String> attachmentUrls,boolean isUserGenerated) { final OpenGraphObject object; try { object = action.getPropertyAs(objectProperty,OpenGraphObject.class); if (object == null) { throw new IllegalArgumentException("Action does not contain a property '" + objectProperty + "'"); } } catch (FacebookGraphObjectException exception) { throw new IllegalArgumentException("Property '" + objectProperty + "' is not a graph object"); } if (!object.getCreateObject()) { throw new IllegalArgumentException( "The Open Graph object in '" + objectProperty + "' is not marked for creation"); } GraphObjectList<GraphObject> attachments = object.getimage(); if (attachments == null) { attachments = GraphObject.Factory.createList(GraphObject.class); } for (String url : attachmentUrls) { GraphObject graphObject = GraphObject.Factory.create(); graphObject.setProperty(NativeProtocol.IMAGE_URL_KEY,url); if (isUserGenerated) { graphObject.setProperty(NativeProtocol.IMAGE_USER_GENERATED_KEY,true); } attachments.add(graphObject); } object.setimage(attachments); }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@SmallTest @MediumTest @LargeTest public void testCantWrapBadPropertyNameOverrides() { try { GraphObject.Factory.create(BadPropertyOverrideInterfaceGraphObject.class); fail("Expected exception"); } catch (FacebookGraphObjectException exception) { } }
public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> paramClass) { if (GraphObject.class.isAssignableFrom(this.itemType)) { if (paramClass.isAssignableFrom(this.itemType)) return this; return GraphObject.Factory.createList(this.state,paramClass); } throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + this.itemType); }
@SmallTest @MediumTest @LargeTest public void testCantWrapBadGetterName() { try { GraphObject.Factory.create(BadGetterNameGraphObject.class); fail("Expected exception"); } catch (FacebookGraphObjectException exception) { } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@SmallTest @MediumTest @LargeTest public void testCantWrapBadZeroParameterMethodName() { try { GraphObject.Factory.create(BadnoparameterMethodNameGraphObject.class); fail("Expected exception"); } catch (FacebookGraphObjectException exception) { } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@SmallTest @MediumTest @LargeTest public void testCantWrapBadSetterName() { try { GraphObject.Factory.create(BadSetterNameGraphObject.class); fail("Expected exception"); } catch (FacebookGraphObjectException exception) { } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@SmallTest @MediumTest @LargeTest public void testCantWrapBadGetterParams() { try { GraphObject.Factory.create(BadGetterParamsGraphObject.class); fail("Expected exception"); } catch (FacebookGraphObjectException exception) { } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@SmallTest @MediumTest @LargeTest public void testCantWrapBadBaseInterface() { try { GraphObject.Factory.create(BadBaseInterfaceGraphObject.class); fail("Expected exception"); } catch (FacebookGraphObjectException exception) { } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@SmallTest @MediumTest @LargeTest public void testCantWrapBadSingleParameterMethodName() { try { GraphObject.Factory.create(BadSingleParameterMethodNameGraphObject.class); fail("Expected exception"); } catch (FacebookGraphObjectException exception) { } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@Override public final <U extends GraphObject> GraphObjectList<U> castTolistof(Class<U> graphObjectClass) { if (GraphObject.class.isAssignableFrom(itemType)) { if (graphObjectClass.isAssignableFrom(itemType)) { @SuppressWarnings("unchecked") GraphObjectList<U> result = (GraphObjectList<U>)this; return result; } return createList(state,graphObjectClass); } else { throw new FacebookGraphObjectException("Can't cast GraphObjectCollection of non-GraphObject type " + itemType); } }
@SmallTest @MediumTest @LargeTest public void testCantWrapNonInterface() { try { GraphObject.Factory.create(GraphObjectClass.class); fail("Expected exception"); } catch (FacebookGraphObjectException exception) { } }
@SmallTest @MediumTest @LargeTest public void testCantWrapBadZeroParameterMethodName() { try { GraphObject.Factory.create(BadnoparameterMethodNameGraphObject.class); fail("Expected exception"); } catch (FacebookGraphObjectException exception) { } }
关于php – 开发Facebook风格的新闻Feed和facebook用php开发的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于#import
本文标签: