Facebook Likes not showing on Facebook page but show up on site - facebook-graph-api

Hi I have a like box on my website scoreoid.net which already has 97 likes I'm using the Open Graph API however my Facebook is not showing the same amount of likes. I'm not sure why is it possible to have both the site and the Facebook company page match makes no sense that there different.

You using Like Button social plugin, not the Like Box. This is very different things while first intended to be used for any URL second is for Facebook Pages only.
You have 97 likes for your site homepage (URL Like Button linked too), not for the Facebook Page

Facebook pages like count is different from a website like count, as they are considered to be two separate objects. The company I work for prefers to have two different counts for statistical analysis purposes.
For your website, you can see stats here:
http://graph.facebook.com/http://www.scoreoid.net
{
"id": "http://www.scoreoid.net",
"shares": 97,
"comments": 4
}
For the facebook page, you can see stats here: http://graph.facebook.com/245182948843019
{
"id": "245182948843019",
"name": "Scoreoid",
"picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/373193_245182948843019_842741787_s.jpg",
"link": "http://www.facebook.com/pages/Scoreoid/245182948843019",
"likes": 5,
"category": "Software",
"website": "http://www.scoreoid.net",
"founded": "2011",
"description": "Scoreoid, developed by game developers for game developers, is a non-restrictive, reliable and easy to use gaming platform designed to handle but not limited to scoring, leaderboards and game management, including advanced functions such as platform content awareness, for multi-platform games.",
"about": "Scoreoid, developed by game developers for game developers, is a non-restrictive, reliable and easy to use gaming platform designed to handle but not limited to scoring, leaderboards and game management, including advanced functions.",
"can_post": true
}
As you can see the id is different between the two, hence why separate statistics. However, I don't think there's a way to merge them together on facebook's side. For statistical purposes you will have to call the graph for each object and sum up their like counts.

Related

Identify nouns and verbs from JSON

Imagine I have a JSON data like following:
tasks=[
{
"id":17,
"title":"Browse through the list of books",
"how_often":"DO",
"how_important_task":"EI",
"role":"reader",
...
},
{
"id":18,
"title":"Search for a book",
"how_often":"DS",
"how_important_task":"EI",
"role":"reader",
...
},
{
"id":19,
"title":"Request a book",
"how_often":"WO",
"how_important_task":"RI",
"role":"reader",
...
},
{
"id":26,
"title":"See latest arrivals of the books",
"how_often":"MO",
"how_important_task":"LI",
"role":"reader",
...
}
]
I am interested in extracting nouns and verbs from this data, possibly for each task object individually.
Is it easier/better to handle on my angular frontend or django backend?
Are there any libraries for angular which does something like this?
Any libraries for django?
This definitely sounds like a task to be done in the backend. The Natural Language API from Google does exactly what you are looking for.
You can use Natural Language Toolkit (or GitHub project page). Using Python so it is ideal to use with Django and you will have an open source solution with possibilities to check the code.
On the website there is also a lot of study material including examples and book about NTLK.
Of course because I answer with the Python library, I would prefer using server side solution because Python is more scientific language and I supposed it will be much easier find or use something related to the Python than Javascript. But of course, if you want use API which suggest #bugs there will be an option use Javascript. I don't like a much Google APIs because there is a problem to the future if the Google won't make some money from the API.
You should use more solutions and check the quality of the solutions, then you can decide what works the best.

Need steps to implement facebook payment in my unity game

I made a game for Facebook canvas in unity, Now i want to sell items in my game with Facebook payment, The problem is i am not a good programmer and Facebook documentations are very hard to understand, so i need some simple steps to integrate payment to my game,
i registered Facebook payment company,
Now how to define product in my unity codes?
How to prompt dialog box?
what to write in callback URL in php?
please make it simple and clear for me
thanks
I think you need to investigate a bit more on how to achieve this, since there is a lot of information available. I'll try to clear some doubts of yours:
To define products for your game, you need to define an Open Graph Object, and upload it to a server (can be your own, or dropbox). Here is a guide from my blog, where I teach how to upload and host OG Objects for achievements, steps are similar.
The in-game code to use in Unity is the method Pay (FB.Canvas.Pay), which receives the url of your hosted OG Object, and some other parameters, and it prompts the user with the appropiate interface to pay (Keep in mind this only works when the game is inside the facebook canvas)
I Hope this starts to guide you on how to approach the paymet system!
I'll answer the questions in the comment here:
No, you don't need the Javascript SDK anymore. Just need to have the Unity SDK in your game.
I haven't found much information on the callback, but since I don't really use it, I just used this code inside a PHP script to just make it work:
$hub_mode = $_GET['hub_mode'];
$hub_challenge = $_GET['hub_challenge'];
$hub_verify_token = $_GET['hub_verify_token'];
if ($hub_verify_token =='YourToken')
{
echo $hub_challenge;
}

What does facebook know about you with the likebox

We were having a beer talk and have something to clear out.
Is the following conclusion correct:
When I put a facebook-like-button-box on my page, does facebook know
every time I'm on that page, even if i'm not logged in.
basically the same as google analytics
if this nis correct, it should be possible to sandbox, the like-button until someone will use it. Then facebook gets only informations when the user actively confirms that.
cheers endo
No, they can't directly track you if you are not logged in and you view an external "like" button. They can, however, set a tracking cookie that identifies you when you sign in, which would allow them to match the tracking data in the current session to you.
One of Facebook's primary revenue streams comes from the analysis and sale of market trend information. They can analyse the likes and comment keywords of certain user clusters (e.g. middle-aged American females, teenagers in college, etc) and use these to produce statistics about market patterns and trends. They can also use keyword analysis to tell a company how many people are talking about something, e.g. "how many people have mentioned my latest blockbuster film?"
You could simply move the image and JavaScript code away from the Facebook servers and host it locally to avoid them from tracking your users.
In pre-emption of the "FACEBOOK = EVIL" arguments:
In the end, though, is it really a big issue? Some people see Facebook as this massive life-infringing uncaring supercorporation, but in reality they're just making a buck through completely anonymous statistics. No human being (or sentient robot) views your preferences, browser tracking data, or personal information. Everything is anonymised and turned into a bunch of numbers relating to a group. Sure, they could screw everyone over and be evil, but why bother when you already make that much money legitimately?

Web Developer curious about developing for the Android

Hey there,
So I've been heavily focused on design/development using web technology for the last few years (php/mysql, javascript, etc), and I'm a bit hesitant to start learning C++.. At the same time, I see it as a potentially enjoyable learning experience.
To keep things brief, right now I'm developing an online app that plots out certain locations on a map, and you can sort through these locations and do a bunch of other nifty things..sorry to be vague. The point is: I don't see any real advantages of making this an actual "app" when the entire functionality of the app itself can do quite fine through the modern mobile browser..
Not to mention that, by living in a browser, it's much less proprietary
So, my question is: Is there any way to make a simple app that's basically porting the user to my site? I guess it'd be convenient that as an app, the user has a nice little icon to click on when they do need to access it..
Android development relies heavily on Java. So you are all ready on the right track.
However if you just want to make an app that brings people to your website, running javascript I am guessing, this is easy to do with android.
Android supports the webkit browser and has a view group called WebView. Your app can be nothing more than a shortcut on a desktop that opens a webview directly pointed to your website. It could add other options to point to other parts of your website like bookmarks.
WebView webview = new WebView(this);
setContentView(webview);
weview.getSettings().setJavaScriptEnabled(true);
webview.loadUrl("yoursiteurlgoeshere);
A lot of apps on the market are actually based around a WebView. There are other classes that allow you more control over the view, like whether links are opened in the webview or in a new browser, or whether the user is allowed to use the resize options, etc.
Welcome to Android.
There is a massive article on exactly this type of idea. It discusses a number of different things and is well worth the read if you are indeed interested in making a cross-phone web-app. It talks about an html5 facility in the works for creating such a thing as you describe, but it isn't quite universal yet.
Here is an article on making an iphone app in html5.
You can also use phonegap to port your design to andorid.
also, check out a jquery plugin calld jqtouch if you are interseted in developing touch capable applications quickly.
If you are worried about speed and the issue of internet connectivity, you can use html5 local storage features which are available on both android and itouch. Ibm has a great series on these issues and part 2 covers local storage.
No. The problem with web technology on a mobile device is the delay. You are far away from the server, so a lot of the things you can easily do with a normal client creates a very bad user experience on a mobile device. The roundtrip time is simply too large. You have to move much more functionality to the client. This client is also less powerfull, and tends to have limits on caching large elements
How is this related to C++?
There is also a C++ API which is only recently available. Google calls it the NDK (Native Development Kit). Information about it can be found here: http://developer.android.com/sdk/ndk/index.html
I personally haven't developed using the NDK. The only real reason someone would really need to would be to write a high-performance application that can't stand the overhead of the Java JVM--which is getting more and more rare these days IMO.
As far as creating a simple app with a web container in it, see Phobos' response. That is exactly how I'd do it personally.

Extending Filenet P8 3.5 Workplace with custom GUI and code

I'm not familiar with Filnet P8.
My assumptions from reading some online docs is that it has a central web-based user interface called Workplace which is implemented on the Java web stack and communicates with the core parts of Filenet through Java APIs.
Also it seems you can extend the Workplace trough JSR 186 compliant portlets. - from what I've read Filnet P8 Workplace is not a portal itself and cannot host portlets, but provides some of the functionality as portlets which can be used with 3rd party portals.
Filenet also seems to have a lot of extensibility points which don't require coding, but I'm considering a highly-customized application with custom dynamic grids and forms.
Is it possible to extend the Workplace using portlets and/or plain JSP/Servlet approach with custom GUI for a custom workflow? (Probably the "Web Application Toolkit" is the tool)
The GUI can contain grids with filtering and column selection, forms (not paper once) with dynamically disabling/enabling fields, custom search forms, dynamic context and dropdown menus.
The GUI should be able to integrate with the Content and Process engines of course.
A link to an existing Filenet P8 based solution which proves such a custom Workplace GUI extension possible would be great.
Thanks!
This is possible. First of all Workplace comes with FULL source code. Look in the AESource directory (usually in c:\Program Files\FileNet\AE if you are running it on Windows). What you need to decide first of all is where you want to plug in (for example do you want to create a new Wokrplace page altogether like the Browse and Search pages or do you want to splice it in as a new action like Checkout, Get-Info etc).
Once you figure that out, I can provide more specific information of where you want to look to add your new code. Once you can display an entry point to your own feature in Workplace, then you can use whatever you want as far as controls etc. You can use JSF grids or just classic JSP stuff or even JQuery controls (provided you link the right libs etc).
Another thing to keep in mind is that you are going to need to get familiar with the Web Application Toolkit (WAT) so that you can make sure you are getting the right state information from Workplace (like the user token of who is logged in, maybe what doc id the user clicked on, what folder they were in when they entered your UI).
Anyways, here is some info to get you started. If you provide more info about where you want to splice your UI in, I can provide some guidance as what you need to change etc.