Fanny's First Play is a 1911 play by George Bernard Shaw.  It was first performed as an anonymous piece, the authorship of which was to be kept secret. However, critics soon recognised it as the work of Shaw. It opened at the Little Theatre in the Adelphi in London on 19 April 1911 and ran for 622 performances. The mystery over the authorship helped to publicise it. It had the longest run of any of Shaw's plays. A second production opened on Broadway on September 16, 1912 for 256 performances.  The play toured the provinces in England in the same year.
 It features a play within a play. The framing play is a satire of theatre critics, whose characters were based upon Shaw's own detractors, in some cases being caricatures of real critics of the day. The main play is a pastiche of the drawing room comedies in vogue at the time.
 Prologue: In a country house, Fanny O'Dowda, the daughter of the Count O'Dowda, is putting on a play she has written. She has hired professional actors and invited major critics. Fanny, who has studied at Cambridge, is keeping her authorship secret. She expects that her father the Count will disapprove of the play, as he hates the vulgarity of modern life. He has only just returned to Britain from living in Venice.
 Fanny's play: 
 Epilogue: Fanny's father is shocked by the play saying that it "outrages and revolts his deepest, holiest feelings". The critics have a variety of views, but wonder who the author may be. The aesthete Gilbert Gunn insists that's so full of tired clichės "as old and stale as a fried fish shop on a winter morning" that it must be by Harley Granville-Barker. Another critic, Vaughan, is convinced that only Arthur Pinero could have written it, since it betrays "the author's offensive habit of saying silly things that have no real sense in them when you come to examine them". Flawner Bannal, a critic from a tabloid, thinks it was written by Bernard Shaw, as the paradoxical statements about the English by the French character are a dead giveaway. Vaughan dismisses this because the characters are too believable: "That proves it's not by Shaw, because all Shaw's characters are himself: mere puppets stuck up to spout Shaw." One critic, Trotter, realises the truth. Fanny admits that she was the author, and the critics all join in praise of her. Trotter thinks that the account of imprisonment has an air of authenticity to it. Fanny confesses that, yes, she has been in prison, for her activities as a militant suffragette. Fanny's father now has to adjust to the fact that his daughter is both a malefactor and a playwright.
 Shaw introduced the published text of the work with a few words: "Being a potboiler it needs no preface. Its lesson is not, I am sorry to say, unneeded--that in an age when custom has been substituted for conscience, and the middle class are as dead as mutton, the young had better get into trouble to have their souls awakened by disgrace."
 The play was first produced in April, 1911, having been hurriedly rehearsed because the previous production, of Ibsen's The Master Builder, had ended early. Shaw was convinced that creating a mystery about the authorship of the play would be ideal publicity. Because of the similarity of the character of Juggins to Crichton in J.M. Barrie's play The Admirable Crichton, Shaw hoped the public might be deceived. "Let people think the play is by Barrie" he said. He told Lillah McCarthy, who played the lead role, to "do everything to suggest the play is by Barrie". C. B. Purdom thinks that this might have worked had it not been for the framer play. "Had it not been for this audacity, there might have been a chance of mystifying the public about the authorship, for Shaw had written nothing so 'easy' and nothing so transparently sincere." The critics in the frame-play express various opinions of Shaw's works, but make only brief mention of other authors. Even the theatre programme identified the author as "Xxxxxxx Xxxx", a pattern of letters that clearly points to "Bernard Shaw". Despite this, Shaw maintained a facade of secrecy about the authorship when he was repeatedly questioned about it by reporters. He told the Pall Mall Gazette "nothing shall ever induce me to betray the authorship of Fanny's First Play. The performance last night was superb; and the audience enjoyed it as much as I did."
 The play referred to the many criticisms that had been made of Shaw's own work, while also including digs at Granville-Barker (who ran the theatre company that performed it) and at the critics themselves. Three of the critics are based on real journalists A. B. Walkley is caricatured as "Trotter", Gilbert Cannan as "Gunn" and E. A. Baughan as "Vaughan". "Bannal", as his surname suggests, represents the most banal popular taste. Walkley, a friend of Shaw's, was aware of the plan beforehand. He helped to make Claude King, the actor playing Trotter, resemble himself in manner and clothing. In his review he joked that Trotter is a "pure figment of the imagination, wholly unlike any actual person". He praised the play highly saying that Shaw had created "one of the most amusing plays he had ever written, one of the wittiest and most audacious plays of all his attack on 'the mean things which men have to do to keep up their respectability'." A letter, purportedly written by Flawner Bannal "the critic of The Matutinal Meddler" was published in The Play Pictorial protesting that the supposedly anonymous play was being marketed with the quotation "'Bernard Shaw...at his best.'--The Daily Graphic."