social-networking

automatic notification in database change :similar with facebook friend request

↘锁芯ラ 提交于 2019-11-30 15:38:48
i wish to develeop a php mysql based social networking site. Registered users will have the option to add another user as a friend just as is done in Facebook. If user A clicks on the 'add friend' link on user B's profile, friend-request records will be made in A's and B's databases accordingly. When B visits the waiting friend-requests- showing-page ( as such the profile page), the request will be shown querying B's db.This much is pretty simple to do i think. But while B is online, C can make a friend-request to B. I want to make a notification to B that C has made such a request even if B

Facebook connect displaying invite friends dialog and closing on completion

隐身守侯 提交于 2019-11-30 11:09:31
问题 I'm trying to create a Facebook Connect application that displays a friend invite dialog within the page using Facebook's Javascript API (through a FBMLPopupDialog). The trouble is to display a friend invite dialog you use a multi-friend form which requires an action="url" attribute that represents the URL to redirect your page to when the user completes or skips the form. The problem is that I want to just close the FBMLPopupDialog (the same behavior as if the user just hit the 'X' button on

Social sharing on mobile

我是研究僧i 提交于 2019-11-30 10:27:41
On a website, one can use a social sharing javascript library like addthis in order to propose share buttons to the user without having to program everything from scratch. Do you know any library doing the same sort of thing directly inside an android application ? On Android we have Intents for this. If you like to give the user an opportunity to share something, you can fire up an intent like this for example: Intent share = new Intent(Intent.ACTION_SEND); share.setType("image/jpeg") // might be text, sound, whatever share.putExtra(Intent.EXTRA_STREAM, pathToPicture); startActivity(Intent

Facebook Sharer - Title and summary Customization

╄→гoц情女王★ 提交于 2019-11-30 08:56:27
I'm working in a project with Django and I'm trying to share pages in facebook and twitter I have problems on facebook, I want to customize the Title and summary shared, to change the text when you share an Index Page and any other page. I tried using: <a href='http://www.facebook.com/sharer.php?s=100& p[title]=TITLE+TEST& p[summary]=summary& p[url]=http://{{ request.META.HTTP_HOST }}{{ request.path }}& p[images][0]=http://whatever.com/media/img/img_facebook.jpg' target="_blank"> <img src="{{STATIC_URL}}img/ico_facebook_small.png" title="Facebook" alt="Facebook" ></a> and even adding: <meta

How to integrate facebook, twitter and google plus to an android app

落花浮王杯 提交于 2019-11-30 05:07:33
I like to integrate Facebook, twitter and Google plus to my app, so that using the app, user can update their status. Therefore I like to know how this can be done. Thanks As for facebook and twitter, you can do this through their API. For facebook, fortunately they have provide android developer with facebook sdk for android , example included on the SDK. And for Twitter you can use external libraries as written on twitter developer docs , and there is a library called Twitter4J that is android ready. Unfortunately Google Plus API are not available yet. Ovidiu Latcu I would highly recommend

Issues in fetching address book to fetch Gmail, Yahoo, Hotmail, Twitter and Facebook contact list in Ruby on Rails [closed]

两盒软妹~` 提交于 2019-11-30 04:12:01
Came across the Contacts plugin while searching. But as per the usage, described in the readme file. It requires username and password to fetch contacts. But that's not a good approach. For Gmail or for your specific purpose: Gmail Contacts . For Yahoo contacts, as far as I know, Contacts seems to be the one that is used. If someone has a better alternative. Please do mention. For Twitter, I would highly recommend the Twitter gem. For Facebook, you already got your Facebook gem sorted. However, I personally use FB Graph . Edit: Hmm, I tried having a look at the doc. No examples mentioned.

Ways to calculate similarity

非 Y 不嫁゛ 提交于 2019-11-29 21:49:30
I am doing a community website that requires me to calculate the similarity between any two users. Each user is described with the following attributes: age, skin type (oily, dry), hair type (long, short, medium), lifestyle (active outdoor lover, TV junky) and others. Can anyone tell me how to go about this problem or point me to some resources? George Dontas Another way of computing (in R ) all the pairwise dissimilarities (distances) between observations in the data set. The original variables may be of mixed types. The handling of nominal, ordinal, and (a)symmetric binary data is achieved

Default Sharing in iOS 7

这一生的挚爱 提交于 2019-11-29 20:44:46
I have seen this format (Image shown below) of share option in most of the iOS applications that support iOS 7. Is there a default code/framework available to implement this share option as it is shown in the image below? Abizern What you are looking for is the UIActivityViewController . Since you asked a general question I can't do more than give you a link to the documentation sjaak bakker In addition to the accepted answer, a small piece of example code - (void)shareText:(NSString *)text andImage:(UIImage *)image andUrl:(NSURL *)url { NSMutableArray *sharingItems = [NSMutableArray new]; if

How do I write Facebook apps using Django?

老子叫甜甜 提交于 2019-11-29 18:47:42
Am in the process of developing some app for Facebook using Django! I've started first by building the app in Django and its shaping up pretty well, now am wondering how can I make it a Facebook app. I would really appreciate real world example for Facebook apps made with Django. I just saw the presentation of Mr. Eric Florenzano at Pycon 2010 , and he talks about a side project he did on facebook using django. From PYCON 2010: If you've been using Django for any amount of time, you've probably learned some pretty standard practices on how to use it. This talk aims to shatter those conceptions

basic SNA in R? - How to load network data

拟墨画扇 提交于 2019-11-29 10:57:52
问题 A few years back I used UCINET for some social network analysis. Theese days I'd like to use SNA again - but this time I prefer a unified analysis framework - which for me is R. I have looked at the sna and statnet documentation but am a bit overwhelmed. What I'd like to do: First: Load an bipartite/incidence matrix pulled directly from e.g. a websurvey (often valued). Convert this matrix to two adjacency matrix' (affiliatoin by affiliation and cases by cases). It could also be a directed,