Questions tagged [friend]

In object-oriented programming, friend refers to a method or class that has access to some non-public aspects of a particular class.

In object-oriented programming, friend refers to a method or class that has access to some non-public aspects of a particular class.

Different programming languages use the friend keyword differently. Make sure it is clear which language you are asking about.

1518 questions
0
votes
1 answer

FQL query to get tagged photos of specific user returning error

How to get tagged photos from particular friend? I'm now using this code SELECT pid,src,images FROM photo WHERE object_id IN (SELECT object_id FROM photo_tag WHERE subject=$uid) this is the error Fatal error: Uncaught Exception: 1: An unknown…
Sasindu H
  • 1,538
  • 7
  • 24
  • 43
0
votes
2 answers

Friend function can't access class variables

I thought that friend functions could access class variables as in how I try to do v.x, v.y, v.z in the << function. But it doesn't compile. It says it's unable to resolve identifier at those lines. Also I'm trying to learn how to use namespaces.…
user1884814
  • 31
  • 1
  • 1
  • 6
0
votes
1 answer

Content error fundamental about friend declaration in c++

I just don't get it, what is wrong in this friend declaration, first error msg: test.cpp: In function 'int main()': test.cpp:34:7: error: 'void steuerung::exe_testa(testa)' is private test.cpp:48:15: error: within this context The problem is being…
0
votes
1 answer

Post to Friends Wall in Windows 8 Application

The graphi api profile_id/feed to post to a friend's wall is being deprecated. The blog https://developers.facebook.com/blog/post/2012/10/10/growing-quality-apps-with-open-graph/ directs that the feed/dialog should be used. How can the feed/dialog…
0
votes
1 answer

interprate the error in decompiled source

I found some helpful code online where only the library file was provided and I recreated the source code but found a couple errors I am not sure of. _ Friend NotInheritable Class CreateFiles ' Methods ' Fields Private Shared…
vbNewbie
  • 3,291
  • 15
  • 71
  • 155
0
votes
1 answer

getting facebook friends list who have installed an app

It's possible to know the facebook friends that they have installed a my fb app? I have tried some ways directly using the online facebook developer tool but I have not been able to find a solution. I have tried both Graph API and FQL
Safari
  • 11,437
  • 24
  • 91
  • 191
0
votes
1 answer

Multiple values in the same column in SQL

I'm fairly new to PHP and SQL. I have spent today programming a friend system (almost identical to Facebook's) but I am unsure of how I would have multiple friends in the same column. So lets say the user 'admin' has a friend called 'john' admin…
0
votes
2 answers

C++ friend functions

My question is pretty simple. I'm learning about friend functions, but this does not work for some reason. It only words if i swap the screen class with the Window_Mgr class, and then add a forward declaration of the screen class. Does it not work…
Oliver
  • 111
  • 2
  • 10
0
votes
3 answers

Android checking all the friends in Facebook FriendPicker sample program

I want to know how to select all the friends in Facebook's FriendPicker sample program. I added a 'select all' button in Pickerfragment class. But i couldn't able to find the way to check all the friends.
Gugan
  • 1,625
  • 2
  • 27
  • 65
0
votes
3 answers

Initializing a friend's reference member to a class private member

I want to initialize a member (of reference type) in one object to point to a private member of another object (of a different type). I use friend to provide access to the private member. (Please bear with me for a bit, I explain further down why I…
Masked Man
  • 1
  • 7
  • 40
  • 80
0
votes
1 answer

friend of base accesses derived

I came across this unanswered question and it is really puzzling. Is this behavior supposed to make any sense? Is it in the standard? This is the question: class parentFriend; class parent { friend class parentFriend; public: void f1(){}; …
0
votes
1 answer

invite friends with php permissions error

Error occur when i invite friend to a public event. (event with can_invite_friend) If i get permissions with fql, create event is set to 1. The error : Application does not have permission for this action My code : $oFacebook = new Facebook(array( …
0
votes
1 answer

creating friend graph

I want to create a friend list for my website which is supposed to be stored in a database table, following is the table structure I think should best serve the purpose. CREATE TABLE `sdt_friend_graph` ( `user` INT(11) NOT NULL, `friend` INT(11)…
Anupam
  • 1,100
  • 2
  • 20
  • 31
0
votes
2 answers

Facebook API (Javascript): Posting to a friendlist

Can someone point me in the right direction for publishing a post to a friendlist using the Facebook JS API? I have so far been using this code: FB.api('me/feed', 'post', { message: msg,privacy: {value: "CUSTOM", friends: "SOME_FRIENDS",…
Bob-ob
  • 1,560
  • 4
  • 18
  • 34
0
votes
1 answer

friend function of the class can't access to its private vector;

I have the following declaration: friend ostream& operator<<(ostream&,const List&); and I have the following definition: ostream& operator<<(ostream& out,const List& item) { vector::const_iterator It; for…
Qiaosen Huang
  • 1,093
  • 1
  • 10
  • 25