The answer in question is to Facebook PHP-SDK: getUser() always returns 0. getUser() returning 0 isn't a specific problem. I wrote a walktrough on how to examine it and added solutions (also with answered links from Stack Overflow).

There are a lot of people asking the same question and questions weren't answered or solved(or weren't deleted, of course).

So I posted this answer on each question. My posts (all of them) were deleted. Why? I thought it might be useful for people who experience same problem.

  • 2
    Which was your answer? I don't have enough reputation to see deleted answers. Please post the content of it. – Ramy Al Zuhouri Feb 8 '13 at 17:12
  • Ok,i have added content now. – fatihpense Feb 8 '13 at 17:21
  • 3
    @RamyAlZuhouri It's not really relevant; it's not a poor quality answer, it was deleted because he copy/pasted it to a lot of questions. – Servy Feb 8 '13 at 17:21
  • Do not place the content of your answer here. You're spamming the site, and there's no reason to place it here. There's more than enough people who have the reputation to see the deleted answers. – casperOne Feb 8 '13 at 17:22
  • 1
    @casperOne Well, he did it because he was requested to here in comments, don't blame the OP. – Servy Feb 8 '13 at 17:22
  • @Servy Fair enough. We have enough of that going on in other metas (and it's not necessary there), we don't need it here. – casperOne Feb 8 '13 at 17:23
  • 5
    @RamyAlZuhouri Please don't request that the contents of the answer be placed in the post. It creates a lot of additional noise that's not necessary. The content can always be placed in a gist or somewhere else and linked to from here. – casperOne Feb 8 '13 at 17:23
  • 1
    @casperOne: But link-only posts are subject to link rot and all that jazz... – BoltClock's a Unicorn Feb 8 '13 at 17:26
  • @BoltClock'saUnicorn Not saying that the post should be solely a link, but placing the entire content of another post in the post is a lot of noise. Fact of the matter is that the content is there, just not everyone can see it. If we deleted it on the main site, it doesn't need to be here. – casperOne Feb 8 '13 at 17:27
  • 1
    @casperOne Are you aware that I'm not able to see his answer anywhere? I can't see deleted posts, how am I supposed to help the OP? – Ramy Al Zuhouri Feb 8 '13 at 17:40
  • @RamyAlZuhouri I do understand that, but a meta post is not a place to replicate a post on the main site. The comment about the content being placed somewhere else was more for others who would do it for you. – casperOne Feb 8 '13 at 17:42

You mean the one you copied and pasted across six different questions?

Next time, find the single canonical question, post an answer there, and then flag/vote for the rest to be closed as duplicates of the canonical question.

Fact is, you were spamming your answer and that's something you shouldn't do.

| improve this answer | |
  • 7
    That's a bingo! – Bill the Lizard Feb 8 '13 at 17:25
  • 1
    seems horrible but isn't it good to leave one answer .. which is most appropriate to question ? – NullPoiиteя Feb 8 '13 at 17:29
  • 3
    @NullPointer I would say yes, but generally, if someone is going to that much trouble to spam an answer, the primary concern is stopping that behavior and then sorting out the answer later. We usually get copy-paste on the level of say, two answers. When it's in the five-six (or higher) range, it's time to slash and burn. – casperOne Feb 8 '13 at 17:30
  • @NullPointer Most of the questions the OP pasted on were already answered. I see what you're saying though, so I closed a couple that were left with zero answers as duplicates. I'm not much of a PHP dev, so I'm not the best person to pick the "canonical" question/answer, but this is better than nothing. – Bill the Lizard Feb 8 '13 at 17:33
  • Thanks, my motivation was to help. However, i understand it now. – fatihpense Feb 8 '13 at 17:35
  • 2
    @fatihpense No problem, if there's a single one that you want undeleted, we can do that, and let us know which ones are duplicates, we'd appreciate that. – casperOne Feb 8 '13 at 17:36
  • @fatihpense IMHO you are just telling about possible case(have less probebality to happen) .. also this is not really a problem in fb api – NullPoiиteя Feb 8 '13 at 17:42
  • @casperOne Actually i have gone through a lot of them searching for an answer before i have solved my problem, and posted my solution. Part of the problem is that askers can't give specific information. I have included how they can provide detailed information in my answer. Is it more appropriate to write these as comment to question? – fatihpense Feb 8 '13 at 21:40
  • 1
    @fatihpense yes, if they haven't defined the question well enough then ask them in a comment to provide more details. That's what comments are for – casperOne Feb 9 '13 at 1:50

As a general rule if you find yourself posting the same answer on multiple questions then something is wrong.

There are really two cases here:

  1. The questions are duplicates; the answer should be posted on the best question (or the newest, or the one you found first, or whatever, but ideally leave the highest quality question open) and the rest of the questions should be closed as a duplicate of that one answered question. Post your answer once and then vote/flag the rest of the questions.

  2. The questions are not duplicates, and your answer is not directly answering the question (even if it's related). It usually means that the answer needs to be adapted to the specific context of the question, even if it's "pretty close" as is.

Then there's a third case in which the answers are all just blatantly offtopic/abusive/spam/etc. and just need to not exist at all, but that's clearly not the case here.

| improve this answer | |
  • 1
    Thanks, i'm new here. I think, i should sit and read all those docs before helping. – fatihpense Feb 8 '13 at 17:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .