Sharing to Facebook a article using swift - facebook

I'm looking to have a share to Facebook button in my app but, I'm looking to have a way that when the screen comes up to share that it'll include the current article and the picture that is in the article too. I'm trying to do this is swift. If someone could please give me a hand with this that would be great!

I experienced that. The following passage was quoted from developers.facebook.com.
After discussing this with our team regarding stripping the
pre-filling message area of text, this is actually BY DESIGN with the
new share extension.
Pre-filling texts violates Platform Policy 2.3
(https://developers.facebook.com/policy/) to pre-fill the message area
with text for people to edit, which is why we strip the text. We know
this is a pain point for developers but this is about ensuring that
users are sharing exactly what they want to share on Facebook, and not
being able to accidentally share text they did not approve of. So in
all enforcing policy 2.3 is a feature and not a bug.
Other services may allow you to accomplish this pre-fill but we have
updated the share sheet implementation to adhere to the same rules as
you would have when sharing directly using the iOS Facebook
Application instead of the native share sheet.
https://developers.facebook.com/bugs/949486035103197/

Related

Programming Facebook "Status Sharing" Features for a CMS

I'm working on some new features for a CMS, and I'm having trouble finding the information about how Facebook interacts with other websites. If turn key solutions exist for this I'd love to hear about them, but I'm basically just looking for pointers to documentation of how this stuff works behind the scenes. Including php, wordpress, and drupal since those are the base technologies I'm working with, but other platform solutions are welcome.
When you paste a URL into Facebook's "What's on your Mind" box, Facebook will automatically fetch a short page description, as well as a list of possible thumbnails. If there's a video it will often auto-generate the needed HTML to embed the video. I've also seen features where you link to a business's main website, but then are prompted to "like" their Facebook page.
How can I, as an independent website owner, have my pages reacts to Facebook in this way. For example, on the following page (link to a personal website) I have four images. However, if I drop that URL into a Facebook status update, there are no thumbnails for those images.
Also, while I've inferred several features of the notification box, I'm curious if there's other's I'm not aware of.
Again, while turnkey solutions and existing plugins are of interest, what I'm really after is what sort of meta data I need to embed in my own page, or what special responses I need to make to Facebook requests. In other words, how do I program a website to response correctly to Facebook.
Basically you convey that information to user in terms of open graph meta tags. From that Facebook picks up what type of site it is. Is it about a book or some music or some commerical brand or may be has a FB page linked to it? Check this documentation for general idea about graph objects - https://developers.facebook.com/docs/opengraph/using-objects/
Coming to specifically the image used as thumbnail, it is specified with og:image meta tag. Important thing to note about it is that FB caches that for ~24hours so don't sweat it if it doesn't show up. You can use this tool to check for your values which fetches it in realtime - https://developers.facebook.com/tools/debug
Also Facebook happens to have quite a lot of bugs around this, so it might take really long before it start showing up. If its picked up debug tool, then you are fine at code level. Not much that you can do about it.
I happen to know about this as I authored a tiny WordPress plugin for that and boy I know the support requests that used to come in. http://wordpress.org/extend/plugins/facebook-like-thumbnail/
Now for 3rd part of your question, even this is specified through meta tags only, like you have primary video content on your website, and you would like it to embed on Facebook when someone puts a link in the status box, so for that this link has code samples http://garethhooper.com/articles/social-media/45-integration/166-how-to-embed-your-own-videos-on-facebook-using-the-facebook-like-and-share-buttons.html
Hope that sets you on track giving you a head start :)

Facebook app, display a wallpost-like UI

In FBML they have this fb:wallpost tag which I can use to display a wall post, but they said it's deprecated.
Is there any other alternative to display a facebook post with full features such as comment and like button ?
Indeed, the fb:wallpost FBML tag made the rendering of a wall-style post possible. The FBML purpose was to emulate the native Facebook rendering on your own app. Here is what they offer now:
You can use our JavaScript SDK and Social Plugins to embedded many of
the same social features which were available in FBML.
Many of the same, but not all of them. And particularly not an alternative to fb:wallpost.
Let's say that what they supply instead hasn't really the same purpose that had FBML. It's not about UI anymore. Now, it's not Facebook which is helping you to render the existing content, but it's you who helps Facebook to increase its traffic when your app brings social interactions. If we look at what they provide, we've got only interaction enhancers like: follow, like, comments, recommendations, login, registration.
We understand that they don't want us to make a dupe of their content, but they favor further social activities.
Their political consulting change and you have to do with it.
By the way, it's not worth to look for plugins or templates that you might find on the net (or even to make your own), because it's forbidden to reproduce one's design. Speaking about that: Before you go ahead and copy Facebook's look, be aware of any legal implications. Anyway, you can still find some nice ways to display the API's content.

Rejected Facebook Built-in Like Action

I'm trying to submitting built-in like action.
First time, I used a button on my site labeled with 'like' and without any logo and linked it to the action, but I've got the following feedback:
Your Like or Recommend button branding conflicts with Section 5.6 of
the Facebook Terms and Section I.8 of the Platform Policy
(https://developers.facebook.com/docs/guides/policy/examples_and_explanations/branding/).
Please resubmit with a different graphic that reflects your own
branding and the ux of your site.
Then I change the button text to 'Useful?', but I've go the following feedback:
Your action conflicts with section IV.3 of the Platform Policies
(https://developers.facebook.com/policy/). You must make it clear to
the user that you will be publishing a story to facebook and get their
permission before actually publishing the story. Additionally, your
action must not be confusing or misleading and should accurately
represent the action the user took within your app.
This confusing, I'm not sure what the problem is, please help :)
Thank you in advance.
It's all explained near the bottom of the the Facebook branding page. On your first attempt you used 'like' and that is not allowed on your custom button. The second time you used 'Useful?' and that is not clear enough and is confusing.
I suggest you read the branding policy examples and the other material.
Section 5.6 of the Facebook Terms
You will not use our copyrights or trademarks (including Facebook, the Facebook and F Logos, FB, Face, Poke, Book and Wall), or any confusingly similar marks, except as expressly permitted by our Brand Usage Guidelines or with our prior written permission.
Section I.8 of the Platform Policy
You must not use or make derivative use of Facebook icons, or use terms for Facebook features and functionality, if such use could confuse users into thinking that the reference is to Facebook features or functionality.
Section IV.3
If a user grants you a publishing permission, actions you take on the user's behalf must be expected by the user and consistent with the user's actions within your app.

What's the difference between a Facebook app and a tab?

I want to add a link to my Facebook page that will open new information within my page. Not a website, but information from a scoring program my bowlers use. I'm not a programmer by any means and have no programmer on staff I am trying to teach myself these things as I go along.
First of all, I have no idea if what I want to add is called a "tab" or an "app." I can't really seem to find a good explanation as to what the difference is. They both kind of sound the same to me. I've tried to figure out how to add both and have found a lot of great websites and information on Facebook that kind of leads you through the process.
The problem is all of them seem to expect me to already know what things like, JavaScript, canvas urls, FBML, etc... and I don't. So I'm getting tripped up on the steps even as I'm trying to work my way through the steps. I guess I'm kind of looking for a page entitled something like "Facebook developing for ignorant people."
I really appreciate any help you can give me.
Please forgive my ignorance here but I have searched and searched for how to do this and just keep coming up against a wall.
What are Facebook Tabs?
The tabbed structure multiplies your possibilities. Tabs help keep Pages organized so people know where to go to get different pieces of information. The Wall tab is for dynamic content, the Info tab has static information, the
Photos tab contains photos albums and Fan photos, etc
What are Facebook Apps?
Apps on Facebook are web apps that are loaded in the context of Facebook in what we refer to as a Canvas Page.
What is a Canvas Page?
A Canvas Page is quite literally a blank canvas within Facebook on which to run your app.
Now where you may have been confused is that you have ability for your app to be used within the context of a Facebook Page via a tab. So it is a custom tab
So now to what you want
I want to add a link to my Facebook page that will open new information within my page.
You want to add a new piece of information to the page. Is it static content. If it is just the rules of the scoring program, then you can use a Tab. Previously one was able to accomplish this using a simple FBML tab. Put Facebook has phased this out.
FBML will no longer be supported as of January 1, 2012
Two quick ways to deal with your problem
Use the Info tab description to place the information
Search for apps that offer this functionality for example TabPress
The longer way (long term) would be to follow this guide and bite the bullet for learning web hosting and development
http://developers.facebook.com/docs/appsonfacebook/pagetabs/
Any more information in terms of languages, and steps depends on exactly what you would like to do. I am not really sure what you mean by showing the bowling information. For the moment I am thinking it is just static information. So all you need to know is how to use the following HTML tags
html
head
body
p

Suggestions on adding a comments section(not feedback) to my iPhone app?

My app is about sharing content and i want to give users the ability to share their comments about the content in the app... not a review or feedback to me but for sharing with other users.
I'm not sure on the exact word for it but I mean something like a talkback or a wallpost or a response like there is an option leave a comment here in stack overflow.
Anyway my question is if anyone knows of a way to do that?
I thought about using the Facebook graph api but never seen something like this before.
Thanks
UPDATE
found a great blog about disqus platform that shows how to add a comment section to an app using the disqus platform
thanks to superjessi for the idea..
You may want to look into the Disqus API. They're widely used for a commenting system and don't require users to make a new account, Disqus accounts work anywhere Disqus is used. I have seen other apps use it, and it seems to work beautifully.
What prevents you from storing those comments in your own database? Then you just have to design a standard UIView to enter the comments and show the comments in a WebView or an UIView.