mercredi 25 février 2015

test users accounts in canvas test app not working

Have a canvas app and a test app for it. Had created some test users for the test app and was able to use the them during local debugging the app (developed using asp.net mvc). Since last two days, the test accounts stopped working for the test app. If I add real facebook users to the test app, the canvas loads correctly but when logged on with test users, the page is blank. Browser console doesn't show any errors. Any clues?


How to get Total reach using facebook insight Graph api

anyone can help on facebook insights? I'm trying to get the Total Reach using facebook graph API.


Here's my example:


http://ift.tt/1BT4Rbs


I've been trying these following metrics:



  • /page_impressions_frequency_distribution

  • /page_impressions_viral_frequency_distribution


But I still can't get the right value for the Total Reach.


Anybody can help me?


Thanks in advance.


Linking .m files in IOS

I am creating project in IOS for integrating Facebook and Twitter using api. But I am not getting how to link the .m files with different .h files. I am new to IOS. In Twitter.m file i have in included twitter related header files and In Facebook.m I have in included Facebook related header.


Now I am not understanding how to link Facebook.m and Twitter.m Guide me regarding the same.


Unity Facebook : 400 Bad Request

I using following code to get user data from facebook



IEnumerator UserFBDataGet(string accessTkn)
{
var downloader3 = new WWW ( "http://ift.tt/1JLg8Pe"+accessTkn );
//Application.OpenURL ( "http://ift.tt/1JLg8Pe"+accessTkn );
yield return downloader3;
print(" downloader3.text ="+downloader3.text );
if(downloader3.error == null)
{
print(" downloader3.text ="+downloader3.text );
}
else
{
print(" downloader3.error ="+downloader3.error );
}

}


It showing Error


You are trying to load data from a www stream which had the following error when downloading. 400 Bad Request UnityEngine.WWW:get_text() c__Iterator1:MoveNext() (at Assets/FBDesktopManager.cs:126)


Even i use WWWForm same error is showing



IEnumerator UserFBDataGet(string accessTkn)
{

userDataGetUrl = "http://ift.tt/P3QvMV?";

WWWForm wf = new WWWForm();

wf.AddField ("fields","id,name,email") ;
wf.AddField ("access_token",accessTkn) ;

WWW downloader3 = new WWW(userDataGetUrl,wf) ;

yield return downloader3;

print(" downloader3.text ="+downloader3.text );
if(downloader3.error == null)
{
print(" downloader3.text ="+downloader3.text );
}
else
{
print(" downloader3.error ="+downloader3.error );
}


}


But when I call



Application.OpenURL ( "http://ift.tt/1JLg8Pe"+accessTkn );


in that page i get all data properly.


Facebook Graph API "/{page-id}/feed" is not working with App Access Token

We are facing issues with Graph API. The Facebook Graph API "/{page-id}/feed" is not working for all pages with a valid App Access Token. Previously it used to work. We noticed it today the API is throwing error




{ "error": { "message": "An unknown error has occurred.", "type": "OAuthException", "code": 1 } }




Not working pages:


http://ift.tt/1AV6yoY http://ift.tt/17Bo6IN


Note: And its working if we pass a User Access token instead of App Token.


Facebook developer Docs says "An access token is required to view publicly shared posts." So App Access Token should work!


Does Facebook change something inside the API?. Can any one help to solve the issue


Unable to 'share' URL on Facebook and Twitter native apps on Firefox OS

This is the first time that I am exploring the share functionality for sharing a URL on Facebook / Twitter native apps and I would appreciate some help to get this functionality working.


I checked and noticed that the boilerplate app doest actually work in this case. Issues with snapshots.


Basically the issue is that these social networking apps are not getting the URLs that are sent through Web Activities.


Has anyone faced this issue before? How do I resolve this?


Here is the Firefox OS app code that I have so far (pretty much similar to boilerplate app):


JS:



"use strict";
(function () {

var share = document.querySelector("#share");
if (share) {
share.onclick = function () {
new MozActivity({
name: "share",
data: {
url: "http://www.google.com"
}
});
};
}
})();


HTML:



<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
</head>

<body>
<main>
<button id="share">Share URL</button>
</main>

<script type="text/javascript" src="js/webapp.js"></script>
</body>

</html>


How do I get this working?


wordpress og:image featured image

Basically, I am using facebook markup on my website.


If an article has more than one image the facebook markup doesn't pick up the featured image for sharing, but does with only one image in the article.


I would like the facebook markup to pick up featured image no matter how many images are in the article?


Here is my markup:



<meta property="og:image" content="<?php if (function_exists('wp_get_attachment_thumb_url')) {echo wp_get_attachment_thumb_url(get_post_thumbnail_id($post->ID)); }?>" />


Does anyone know what needs changing?


Problem has been driving me nuts.


Regards