{"id":1747,"date":"2022-08-30T15:19:06","date_gmt":"2022-08-30T15:19:06","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/30\/get-online-friends-c-facebook-dll-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:19:06","modified_gmt":"2022-08-30T15:19:06","slug":"get-online-friends-c-facebook-dll-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/get-online-friends-c-facebook-dll-collection-of-common-programming-errors\/","title":{"rendered":"get online friends C# facebook.dll-Collection of common programming errors"},"content":{"rendered":"<p>Well, Facebook requires an authentication token. That variable is usually assigned by those Key and Secret request. Without the proper authentication or application being accepted by the Facebook user it won&#8217;t work.<\/p>\n<p>The reason I mention that <em>Token<\/em> is because the UID is usually the numbers after a profile or application identifier like so:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/NhafM.jpg\" \/><\/p>\n<p>I&#8217;m not sure what step you&#8217;re on but: <img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/8rY0u.png\" \/><\/p>\n<p>You have to create an application that utilizes the Application ID, and Application Secret. Without that token, you can&#8217;t actually access Facebook.<\/p>\n<pre><code>\n\n  \n    \n    \n    \n    \n    \n    \n  \n  \n    \n  \n\n<\/code><\/pre>\n<p>Will need to go in your <code>app.config<\/code>.<\/p>\n<p>Now inside of Facebook:<\/p>\n<pre><code>var fb = new FacebookClient(this.AccessToken);\ndynamic result = fb.Post(\"me\/feed\", new { message = \n     \"My second wall post using Facebook C# SDK\" });\n<\/code><\/pre>\n<p>You&#8217;ll have access.<\/p>\n<p>The UID is basically the Application ID or User ID your trying to identify. That is why you keep receiving that error. You don&#8217;t have a valid session to physically access it.<\/p>\n<p>Hopefully that helps.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-30 19:06:14. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Well, Facebook requires an authentication token. That variable is usually assigned by those Key and Secret request. Without the proper authentication or application being accepted by the Facebook user it won&#8217;t work. The reason I mention that Token is because the UID is usually the numbers after a profile or application identifier like so: I&#8217;m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1747","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1747"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1747\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}