Questions tagged [social-network-friendship]

Use this tag for questions relating to friendship connections in social networks.

Use this tag for questions relating to friendship connections in social networks.

31 questions
13
votes
3 answers

facebook graph api..get friends of friends

I am using the FB graph api to get a list of my friends' friends using: https://graph.facebook.com//friends?access_token= Now the weird thing is that this works for some of my friends and does not work for some others. Could somebody…
9
votes
3 answers

Best Models for a Friendship relation (in Django)

What is the best way to model friendships between users for a social networking site? The possible states are: no Friendship FriendRequest from A to B, B needs to confirm (this is asymmetric) A and B are friends (this is symmetric) now its…
allo
  • 3,955
  • 8
  • 40
  • 71
5
votes
1 answer

In a social network environment, what would be the easiest way to check for friendships globally?

For reference, here is a question on SO that I asked recently that is relevant to this question: How to model Friendship relationships On that question, we figured out a way to display news feed items only if posted by friends. However, what I…
vertigoelectric
  • 1,307
  • 4
  • 17
  • 37
4
votes
2 answers

Get friendship start date

I've been looking for a way to know the date two users became friends. I've found this question but it only explains how to simulate the friendship page with multiple FQL queries. What I want to determine is the date you can see at the top of the…
jocriaba
  • 103
  • 3
  • 6
2
votes
3 answers

user has many :users, or must I use another way for a friend based social network?

I'm creating a little social network in Rails, where people can add eachother as a friend. I have created a model called 'user', which contains, e-mail, strong md5 hash with salt of password etc. How do I create something like an option to add…
user142019
2
votes
1 answer

RESTful URL design for a Friendship System

I am an API developer in my company. We are developing a social network. We are using a friendship system. We are using API-oriented system. The api I will be writing will be used by every platform we are developing. I classically have a User…
2
votes
2 answers

PHP/MYSQL/social network best pracice table structure for followers

I would like to allow users to follow other users as with Twitter, Instagram etc. Am thinking that this should include table structure something like following: Users with userid, password, email, fname, lname Followers with userid1(INT),…
user1260310
  • 2,229
  • 9
  • 49
  • 67
1
vote
1 answer

Need help in designing friendship request SQL table

I have SQL table for friendship requests. Table is on server - clients are mobile phones Table: Key = index, int, auto increment C1 = userA_ID C2 = userB_ID (C1, C2 = unique) C3 = status (pending, accepted, declined, unfriend....) For better…
user1136875
  • 613
  • 1
  • 9
  • 22
1
vote
2 answers

Creating Custom Friendship Associations Based Around an "Event" Model

I've been researching friendship models using roles, custom associations, etc. But I haven't been able to connect my project to the concepts in a clear way. I want a "User" to be able to create an event I'm calling a "Gather". A User can also attend…
1
vote
1 answer

friendship network identification in R

I want to identify networks where all people in the same network directly or indirectly connected through friendship nominations while no students from different networks are connected. I am using the Add Health data. Each student nominates upto 10…
chfs
  • 57
  • 6
1
vote
0 answers

Token matching query does not exist

I am trying to set up a way to add friends on a social media type site, but something is wrong and I don't know what is going on. Here is my model: class Friend(models.Model): #static variables for friend_status attribute FORMER_FRIENDS = 0 …
Brian
  • 385
  • 1
  • 5
  • 23
1
vote
2 answers

Why friendships for social linking in Rails?

Looking at a lot of tutorials on social linking systems in rails. I notice that there seems to be a consistent use of friends as alias for user objects, with a join model "friendships". I followed this at first, but as I go forward it seems to…
Techism
  • 534
  • 3
  • 11
1
vote
3 answers

How to get friends who have birthday today or in the next 7 days (week)?

before creating this topic I researched the entire community, but I did not find anything close to what I'm trying to do. I am developing a small social network which is a PHP project for academic purposes only. I have the following tables in my…
1
vote
1 answer

ASP.NETCore - Friends System

I`m building an application where I try to make a friend system. Now, I work with 2 tables for that. 1st: Default AspNetUsers where i store user information. 2nd: Friends Table as below: public class AspNetFriends { public int ID { get; set;…
1
vote
3 answers

Best way to show friends of a user in alphabetical order

On a social network I am working on in PHP/MySQL, I have a friends page, it will show all friends a user has, like most networks do. I have a friend table in MySQL, it only has a few fields. auto_ID, from_user_ID, to_friend_ID, date I would like…
JasonDavis
  • 48,204
  • 100
  • 318
  • 537
1
2 3