Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Maestro Beginner · Aug 17, 2015 at 10:45 AM · iosfacebook

Posting on Facebook from Facebook's application for IOS. How?

Hello. I make posting to Facebook for IOS.

There is a script that which opens Safari.

 using UnityEngine;
 using System.Collections;
 
 public class facebookScript: MonoBehaviour {
 
 
 const string AppId = "8722581399999999";
 const string ShareUrl = "http://www.facebook.com/dialog/feed";
 
 public static void Sharefb (string link, string pictureLink, string name,
 string caption, string description, string redirectUri)
 {
 Application.OpenURL (ShareUrl +
 "? App_id =" + AppId +
         "& Link =" + WWW.EscapeURL (link) +
         "& Picture =" + WWW.EscapeURL (pictureLink) +
         "& Name =" + WWW.EscapeURL (name) +
         "& Caption =" + WWW.EscapeURL (caption) +
         "& Description =" + WWW.EscapeURL (description) +
         "& Redirect_uri =" + WWW.EscapeURL (redirectUri));
 }
 
 }

I need the same or similar as possible to the application Facebook. I realized that I need to expose this type of link fb://albums, to open from application. I removed all the parameters and was just trying to start open any link, but nothing.

I tried to just open such links: 'fb://friends' and 'fb://publish/?text=some text to post'

Just open the app of Facebook. (standart page)

What do I do wrong? I need install Facebook sdk? What's the Problem?

Help me, please.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by zzzzzz789 · Sep 30, 2015 at 10:34 PM

Look into the Facebook SDK for Unity for implementing Facebook social features into your game. To share content like you have described check into FB.ShareLink or FB.FeedShare.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Facebook unity sdk: is it possible to send friend invites/app requests to non app users ? 1 Answer

I can see/send invites to non-app user friends on canvas app but not on android/ios 0 Answers

Facebook Platform Policies and Promotions Policies 0 Answers

Why the feed stories of my facebook game attempt to open the canvas instead of launch the Android/iOS mobile application? 1 Answer

Facebook App ID issues (IOS and Android) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges